Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
MusicPlayerStop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MusicPlayerStop



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.
References: 
 >Re: crashy bug in December Dev Tools AUEffectBase.cpp (From: "Ben Kennedy" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.