Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
code:sub2r-lib [2019/01/31 21:01] – [Windows] Igor Yefmov | code:sub2r-lib [2022/08/30 18:42] – [byte_span] Igor Yefmov | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Windows ====== | ====== Windows ====== | ||
- | You can download the library from [[http://download.sub2r.com/ | + | You can download the library from [[http:// |
- A header file '' | - A header file '' | ||
- Both '' | - Both '' | ||
- | - A sample | + | - Sample |
+ | - Sample code that showcases the use of '' | ||
+ | - Sample code for controlling FPS: '' | ||
- | The library is built using MSVC 2017 version '' | + | The library is built using MSVC 2022 version '' |
- | ===== byte_span | + | ===== Basic " |
- | Beginning with version '' | + | |
- | + | ||
- | Quite often a need arises to represent " | + | |
- | + | ||
- | All the library' | + | |
Sample usage: | Sample usage: | ||
Line 19: | Line 16: | ||
using S2R::FX3; | using S2R::FX3; | ||
FX3 fx3; // by default opens device #0 | FX3 fx3; // by default opens device #0 | ||
- | if(fx3){ | + | if(fx3.isValid()){ |
- | | + | |
const auto rc{m_fx3.vrCmd(Fx3Cmd:: | const auto rc{m_fx3.vrCmd(Fx3Cmd:: | ||
, VrCmdOpType:: | , VrCmdOpType:: | ||
, 0 // " | , 0 // " | ||
, 0 // " | , 0 // " | ||
- | , byte_span(vi))}; // buffer to read into | + | , vi)}; |
return vi; // 32 bits of the " | return vi; // 32 bits of the " | ||
} | } | ||
Line 469: | Line 466: | ||
FIXME | FIXME | ||
+ | ====== Previous versions ====== | ||
+ | * [[SUB2r-lib-2020-10-08]] | ||
+ | * [[SUB2r-lib-2019-04-29]] |