Bugfix: serialization of DeviceInfo contained errors
This commit is contained in:
parent
bd4961710e
commit
28e935e93b
@ -131,9 +131,9 @@ class DeviceInfo {
|
|||||||
|
|
||||||
operator string() const {
|
operator string() const {
|
||||||
std::stringstream str;
|
std::stringstream str;
|
||||||
str << api.apiname + " " << api_specific_devindex
|
str << api.apiname + " " << api_specific_devindex << endl
|
||||||
<< " number of input channels: " << ninchannels
|
<< " number of input channels: " << ninchannels << endl
|
||||||
<< " number of output channels: " << noutchannels;
|
<< " number of output channels: " << noutchannels << endl;
|
||||||
return str.str();
|
return str.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,13 +216,8 @@ class DeviceInfo {
|
|||||||
dtype.is_floating = bool(nexti());
|
dtype.is_floating = bool(nexti());
|
||||||
devinfo.availableDataTypes.push_back(dtype);
|
devinfo.availableDataTypes.push_back(dtype);
|
||||||
}
|
}
|
||||||
devinfo.prefDataTypeIndex = nexti();
|
|
||||||
|
|
||||||
N = us(nexti());
|
devinfo.prefDataTypeIndex = nexti();
|
||||||
for(us i=0;i<N; i++) {
|
|
||||||
devinfo.availableSampleRates.push_back(nextf());
|
|
||||||
}
|
|
||||||
devinfo.prefSampleRateIndex = nexti();
|
|
||||||
|
|
||||||
N = us(nexti());
|
N = us(nexti());
|
||||||
for(us i=0;i<N; i++) {
|
for(us i=0;i<N; i++) {
|
||||||
@ -236,6 +231,12 @@ class DeviceInfo {
|
|||||||
}
|
}
|
||||||
devinfo.prefFramesPerBlockIndex = nexti();
|
devinfo.prefFramesPerBlockIndex = nexti();
|
||||||
|
|
||||||
|
N = us(nexti());
|
||||||
|
for(us i=0;i<N; i++) {
|
||||||
|
devinfo.availableInputRanges.push_back(nexti());
|
||||||
|
}
|
||||||
|
devinfo.prefInputRangeIndex = nexti();
|
||||||
|
|
||||||
devinfo.ninchannels = nexti();
|
devinfo.ninchannels = nexti();
|
||||||
devinfo.noutchannels = nexti();
|
devinfo.noutchannels = nexti();
|
||||||
devinfo.hasInputIEPE = bool(nexti());
|
devinfo.hasInputIEPE = bool(nexti());
|
||||||
|
Loading…
Reference in New Issue
Block a user