mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Yuck, mark abuse of OSystem::setSoundCallback
svn-id: r24404
This commit is contained in:
@@ -35,6 +35,13 @@ void ProtrackerPlayer::init(OSystem *system) {
|
||||
|
||||
_buf = new SoundBuffer();
|
||||
|
||||
// FIXME BROKEN: You must NOT use OSystem::setSoundCallback(),
|
||||
// ever! The only piece of code allowed to use it is the mixer.
|
||||
// And soon the call might be removed completely, too.
|
||||
// The proper way to do this is to create a AudioStream
|
||||
// subclass and hook that with the mixer. See also the
|
||||
// code used by other softsynths (sound/softsynth/emumidi.h).
|
||||
|
||||
_system->setSoundCallback(&audioCallback, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user