-
Gap between samples
I have 2 sample files that make up a song(intro and loop). The intro is supposed to play once and then the loop should play and repeat. I have the code working, but the moment the intro ends and the loop should begin, there is a noticeable pause/hiccup.
I know the samples are seamless when played back to back in Winamp, but when I play them in Media Player, there is a pause. I assume this is due to Winamp loading all the samples into memory and Media Player loading them as they begin. This tipped me off to the fact that MMF2 might be doing the same thing.
Does anyone know if this just a limitation of MMF2 or if there is a workaround to get seamless playback?
Mobichan
-
Re: Gap between samples
There are no limitations when you control everything.
So have you tried telling MMF to play the loop --> "loop" if the "intro" is NOT playing? That might make it play immediately, and if you DO want a pause you could add a timer to adjust the moment the sample starts playing.
Did that help?
-
Re: Gap between samples
I am using the "If Not Playing" condition. I really need to know if this is a limit of MMF2. Maybe it is a question for the MMF2 programmers?
-
Re: Gap between samples
hmm, easiest way would be to have the loop 'start/load' before the intro ends, pause it then begin it when the intro stops.
and your quite correct winamp/itunes does buff it in to memory.
Another way could be to use an extension to handle this, such as MCI or Direct Show, as there LOAD and PLAY can be Controlled Arbitrarily.
-
Re: Gap between samples
SEELE: Can you recommend a way to load a sample in advance? Or are you suggesting that I play both samples at the same time but pause the loop sample until the "has loop finished" condition occurs?
-
Re: Gap between samples
MOBICHAN: Why not just have the sample playing but set the volume of the one you don't want to hear to 0 until you want to hear it.
-
Re: Gap between samples
because it wont be where you want it.
i was suggesting some point perhaps even during the play of the intro start the loop but pause it strait away, then when your ready... unpause.