InitScoreDynamics
Sets up dynamic voice allocation.
Synopsis
Err InitScoreDynamics( ScoreContext *scon,int32 MaxScoreVoices )
Description
This function creates an appropriate number of note trackers to handle the maximum number of voices specified. It's called internally by InitScoreMixer()
. You should use this call instead of InitScoreMixer() if
your task is setting up MIDI score playback using non-DSP instruments. InitScoreDynamics()
sets up voice allocation without creating a mixer instrument.
Arguments
- scon
- Pointer to a ScoreContext data structure.
- MaxNumVoices
- A value indicating the maximum number of voices for the score.
Return Value
The function returns 0 if successful or an error code (a negative value) if an error occurs.
Implementation
Library call implemented in music.lib V20.
Associated Files
score.h, music.lib
See Also
InitScoreMixer
(), TermScoreMixer()