diff --git a/src/apps/soundrecorder/Jamfile b/src/apps/soundrecorder/Jamfile index 8a539e2af8..179bf1d447 100644 --- a/src/apps/soundrecorder/Jamfile +++ b/src/apps/soundrecorder/Jamfile @@ -15,6 +15,12 @@ App SoundRecorder : UpDownButton.cpp VUView.cpp VolumeSlider.cpp - : libbe.so libmedia.so libtracker.so + : be media tracker : SoundRecorder.rdef ; + +if $(TARGET_PLATFORM) = haiku { + LinkSharedOSLibs SoundRecorder : libbe.so libmedia.so libtracker.so ; +} else { + LinkSharedOSLibs SoundRecorder : be media tracker ; +} diff --git a/src/apps/soundrecorder/SoundConsumer.cpp b/src/apps/soundrecorder/SoundConsumer.cpp index d7e259854b..3377b84f37 100644 --- a/src/apps/soundrecorder/SoundConsumer.cpp +++ b/src/apps/soundrecorder/SoundConsumer.cpp @@ -37,8 +37,14 @@ // Comment out the FPRINTF part of these lines to reduce verbiage. // Enabling MESSAGE will kill performance on slower machines, because it // prints for each message received (including each buffer). -#define NODE //FPRINTF -#define MESSAGE //FPRINTF +#define TRACE_SOUNDCONSUMER +#ifdef TRACE_SOUNDCONSUMER +#define NODE FPRINTF +#define MESSAGE FPRINTF +#else +#define NODE(x...) +#define MESSAGE(x...) +#endif SoundConsumer::SoundConsumer( @@ -49,8 +55,7 @@ SoundConsumer::SoundConsumer( BMediaNode(name ? name : "SoundConsumer"), BBufferConsumer(B_MEDIA_RAW_AUDIO) { - NODE(stderr, "SoundConsumer::SoundConsumer(%p, %p, %p, %p)\n", - name, recordFunc, notifyFunc, cookie); + NODE(stderr, "SoundConsumer::SoundConsumer(%p, %p, %p, %p)\n", name, recordFunc, notifyFunc, cookie); if (!name) name = "SoundConsumer";