X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=RtAudio.cpp;h=2306c74b1ec321c694cb631905aa1b4dbc115485;hb=7423320bc2cf2fb832aade4b65abc533ab96119f;hp=603da0a163699d25b77512d19f505292e5d8d69d;hpb=5a04c0ad22db76bf1950f7e2df1aae6a8866ac4e;p=rtaudio-cdist.git diff --git a/RtAudio.cpp b/RtAudio.cpp index 603da0a..2306c74 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8783,10 +8783,10 @@ RtAudio::DeviceInfo RtApiOss :: getDeviceInfo( unsigned int device ) info.nativeFormats |= RTAUDIO_SINT8; if ( mask & AFMT_S32_LE || mask & AFMT_S32_BE ) info.nativeFormats |= RTAUDIO_SINT32; -#ifdef AFMT_FLOAT +#ifdef AFMT_FLOAT if ( mask & AFMT_FLOAT ) info.nativeFormats |= RTAUDIO_FLOAT32; -#endif +#endif if ( mask & AFMT_S24_LE || mask & AFMT_S24_BE ) info.nativeFormats |= RTAUDIO_SINT24; @@ -9113,7 +9113,7 @@ bool RtApiOss :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned } // Verify the sample rate setup worked. - if ( abs( srate - (int)sampleRate ) > 100 ) { + if ( abs( srate - (int)sampleRate ) > 100 ) { close( fd ); errorStream_ << "RtApiOss::probeDeviceOpen: device (" << ainfo.name << ") does not support sample rate (" << sampleRate << ")."; errorText_ = errorStream_.str();