MusicPlayerStop
MusicPlayerStop
- Subject: MusicPlayerStop
- From: John Stiles <email@hidden>
- Date: Fri, 20 Dec 2002 20:00:25 -0800
I'm noticing some odd behavior with MusicPlayerStop.
Right now I'm using the software synthesizer and trying to write code
which can fade between two separate MusicSequences. My current testbed
application has a 3D mixer with multiple MusicSequences attached to it
(and each MusicSequence has a corresponding DLS sound bank). I use a
MusicPlayer to control each MusicSequence. Here's what I'm seeing:
- At first, music 1 is playing (MusicPlayerStart). All is well.
- Next, I fire up music 2 (MusicPlayerStart again). Both songs play on
top of one another without incident; it sounds great.
- After playing with their volumes, I call MusicPlayerStop on music 1.
Now BOTH musics stop!!
I can work around this by avoiding MusicPlayerStop--I can successfully
stop the sound by going through the rest of my music-teardown code
without stopping the music (disconnecting music 1 from the mixer and
disposing the music player/sequence/DLS-synth) and never calling
MusicPlayerStop. This technique does does seem to work... but I don't
understand why MusicPlayerStop causes both MusicSequences to stop. I'm
thinking either I have a fundamental misunderstanding, there's a bug,
or some combination of the two :| Does anyone here understand what
might be going on?
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.