diff --git a/libs/openFrameworks/sound/ofSoundStream.cpp b/libs/openFrameworks/sound/ofSoundStream.cpp index f29c97f27fb..06c173c5467 100644 --- a/libs/openFrameworks/sound/ofSoundStream.cpp +++ b/libs/openFrameworks/sound/ofSoundStream.cpp @@ -47,7 +47,9 @@ void ofSoundStreamListDevices(){ //------------------------------------------------------------ ofSoundStream::ofSoundStream(){ - setSoundStream( ofPtr(new OF_SOUND_STREAM_TYPE) ); + #ifdef OF_SOUND_STREAM_TYPE + setSoundStream( ofPtr(new OF_SOUND_STREAM_TYPE) ); + #endif } //------------------------------------------------------------