Similar to
edb4ec67. The reason is because std::roundf causes errors
in some compilers even with cmath, yet roundf by itself should exist
in math.h. TODO: Switch to std::round when moving to C++11.
}
if ( stream_.mode == INPUT ) {
- convBuffSize = ( size_t ) std::roundf( stream_.bufferSize * captureSrRatio ) * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
+ using namespace std; // for roundf
+ convBuffSize = ( size_t ) roundf( stream_.bufferSize * captureSrRatio ) * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
deviceBuffSize = stream_.bufferSize * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
}
else if ( stream_.mode == OUTPUT ) {