From: Stephen Sinclair Date: Tue, 22 Aug 2017 20:29:57 +0000 (-0300) Subject: oss: possible that AFMT_FLOAT is not available X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=b9d8c432dd98781b13ab2c502347342193e2fe1b;p=rtaudio-cdist.git oss: possible that AFMT_FLOAT is not available --- diff --git a/RtAudio.cpp b/RtAudio.cpp index f4bff00..75c9840 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -8783,8 +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 if ( mask & AFMT_FLOAT ) info.nativeFormats |= RTAUDIO_FLOAT32; +#endif if ( mask & AFMT_S24_LE || mask & AFMT_S24_BE ) info.nativeFormats |= RTAUDIO_SINT24;