M src/OpusWriteStream.cpp +3 -1
@@ 33,6 33,7 @@
*/
#ifdef HAVE_OPUS
+#ifndef HAVE_OPUS_READ_ONLY
//#define DEBUG_OPUS_WRITE 1
@@ 157,4 158,5 @@ OpusWriteStream::putInterleavedFrames(si
}
-#endif
+#endif // !HAVE_OPUS_READ_ONLY
+#endif // HAVE_OPUS
M src/OpusWriteStream.h +3 -1
@@ 38,6 38,7 @@
#include "../bqaudiostream/AudioWriteStream.h"
#ifdef HAVE_OPUS
+#ifndef HAVE_OPUS_READ_ONLY
namespace breakfastquay
{
@@ 61,6 62,7 @@ protected:
}
-#endif
+#endif // !HAVE_OPUS_READ_ONLY
+#endif // HAVE_OPUS
#endif