diff --git a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp index b43813c253..7682ecd41d 100644 --- a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp +++ b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioAddOn.cpp @@ -64,7 +64,7 @@ MultiAudioAddOn::~MultiAudioAddOn() void *device = NULL; for ( int32 i = 0; (device = fDevices.ItemAt(i)); i++ ) - delete device; + delete (MultiAudioDevice *)device; SaveSettings(); } diff --git a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp index f436f1af98..eefd3792f9 100644 --- a/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp +++ b/src/add-ons/media/media-add-ons/multi_audio/MultiAudioNode.cpp @@ -46,6 +46,9 @@ #include "MultiAudioNode.h" #include "driver_io.h" +#ifdef DEBUG + #define PRINTING +#endif #include "debug.h" #include @@ -299,7 +302,9 @@ void MultiAudioNode::NodeRegistered(void) SetParameterWeb(fWeb); /* apply configuration */ +#ifdef PRINTING bigtime_t start = system_time(); +#endif int32 index = 0; int32 parameterID = 0;