Permit building with Opus read support only (since writing is a separate dependency)
2 files changed, 6 insertions(+), 2 deletions(-)

M src/OpusWriteStream.cpp
M src/OpusWriteStream.h
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