Andreas Persson wrote: > there's a (very small) risk for memory leaks when an Engine is deleted. > So, to me it seems like a testcancel in at least the DiskThread is > better than asynchrounus mode also for linux.
In that case, it may be necessary to check AudioOutputDevice*.cpp sources to make sure Main() has suitable cancel points within the loop. AudioOutputDeviceJack.cpp is already modified but others are not touched yet. >> As a side effect, voice stealing now seems to be working correctly >> (previously it was not working, presumably because the thread of the >> running voice was not properly canceled). > > I don't think it's related. If I don't misunderstand the code there are > no threads canceled by the voice stealing code. Thank you for clarification. I also add one compile option (-D_APPLE_C_SOURCE) for better compliance to POSIX standard, which may be the reason why the voice stealing is now working. Regards, Toshi Nagata ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Linuxsampler-devel mailing list Linuxsampler-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel