zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit c080af3808185f6c1f568a90e5fcf30bde1bbab4
parent 2379f29a91749c350c537464fef6669da5b955d1
Author: fundamental <[email protected]>
Date:   Fri,  1 Jan 2010 13:46:18 -0500

AudioOut: fixing deallocation

Diffstat:
Msrc/Nio/AudioOut.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Nio/AudioOut.cpp b/src/Nio/AudioOut.cpp @@ -31,17 +31,17 @@ AudioOut::AudioOut(OutMgr *out) buffering(6),manager(out),enabled(false) { pthread_mutex_init(&outBuf_mutex, NULL); - pthread_cond_init (&outBuf_cv, NULL); + pthread_cond_init(&outBuf_cv, NULL); } AudioOut::~AudioOut() { -#warning TODO destroy other mutex + pthread_mutex_destroy(&outBuf_mutex); + pthread_cond_destroy(&outBuf_cv); } void AudioOut::out(Stereo<Sample> smps) { -#warning TODO check for off by one errors pthread_mutex_lock(&outBuf_mutex); if(samplerate != SAMPLE_RATE) { //we need to resample smps.l().resample(SAMPLE_RATE,samplerate);