mirror of https://github.com/AxioDL/amuse.git
Merge branch 'master' of https://github.com/AxioDL/amuse
This commit is contained in:
commit
3510c0a2e8
|
@ -18,7 +18,8 @@ the OS' audio system fed.
|
||||||
|
|
||||||
The client must provide the implementation for allocating and mixing audio
|
The client must provide the implementation for allocating and mixing audio
|
||||||
voices, since this may drastically differ from target to target.
|
voices, since this may drastically differ from target to target.
|
||||||
`amuse::IVoiceAllocator` is the pure-virtual interface to implement for this.
|
`amuse::IBackendVoiceAllocator` is the pure-virtual interface to implement
|
||||||
|
for this.
|
||||||
|
|
||||||
Here's an example usage:
|
Here's an example usage:
|
||||||
|
|
||||||
|
@ -60,7 +61,7 @@ int main(int argc, char* argv[])
|
||||||
/* Stopping a SoundMacro is accomplished by sending a
|
/* Stopping a SoundMacro is accomplished by sending a
|
||||||
* MIDI-style 'KeyOff' message for the voice
|
* MIDI-style 'KeyOff' message for the voice
|
||||||
*/
|
*/
|
||||||
voice.keyOff();
|
voice->keyOff();
|
||||||
|
|
||||||
/* Play for 2 more seconds to allow the macro to gracefully fade-out */
|
/* Play for 2 more seconds to allow the macro to gracefully fade-out */
|
||||||
passedFrames = 0;
|
passedFrames = 0;
|
||||||
|
|
Loading…
Reference in New Issue