audioDeviceStopped() not called deleting AudioDeviceManager?

When my app exits, on the Mac it seems that AudioIOCallback::audioDeviceStopped() doesn’t get called if you simply delete the AudioDeviceManager (as opposed to first calling closeAudioDevice()).

I think it should. In other words when the ScopedPointer for currentAudioDevice is set to zero, currentAudioDevice->stop() should get called automatically.

On Windows everything works as expected.

All this is second hand info by the way…so don’t shoot me!

Actually, that’s a really good catch - I just had a look in the CoreAudioIODevice, and it looks like I forget to put a close() call in its destructor… Thanks, I’ll sort that out today!