Hi!
My app creates an AUGraph with a matrix mixer, an
AUAudioFilePlayer and a DLS music device, both of which are connected to one
bus each of the matrix mixer.
My problem in a nutshell: If I set the property kAudioUnitProperty_ScheduledFileIDs
of the AUAudioFilePlayer and the sound bank of the DLS device in the wrong
order, the DLS music device crashes if I try to play a file with the
AUAudioFilePlayer!
In more detail:
Everything works fine if:
I set the kAudioUnitProperty_ScheduledFileIDs of the
AUAudioFilePlayer once and for all
or if I set the property several times without doing
anything to the DLS device in between.
The crash occurs if I do things in the following order:
1) Set the kAudioUnitProperty_ScheduledFileIDs
property with a file list containing one entry
2) Set the
sound bank file of the DLS device
3) Set the kAudioUnitProperty_ScheduledFileIDs
property of the AUAudioFilePlayer again, this time with two file IDs in the
list.
Any ideas to solve this most welcome
Mats Liljedahl
Interactive Institute, Sweden