Dulled down sound when playing sound files?

I'm using loadStream sounds (some contained in functions called with performWithDelay, some just background sounds) but sometimes the sound is dulled down and I can barely hear it in the Corona Simulator?

Sometimes they play at full volume, then other times the same sounds are barely audible the next time I run the program in the simulator.

Has anyone else experienced this? If so, is it my fault or is it just a trait of the simulator?

Has anyone built a program to test on a device with this happening? Did it play okay on the device but not the simulator?

I'd appreciate some feedback here from more experienced Corona users if you have time to write a quick comment.

Kevin :)

Forgot to say that I'm using WAV mono sound files . . .

This generally shouldn't be happening unless you are using volume or fade functions in which case you need to reset the channel volumes when you want the volume restored.

Thank you for your advice ewing.

Yes, I'm using a fade in function which could be causing this to happen.

I will revise my code and reset the channels.

This comment really helps as now I know it's my coding that needs tweaking.

The support network for Corona is fantastic by the way.

Thanks again buddy :)

Yes (yippeee!) Your advice worked a treat buddy. Fixed the problem in 2 minutes.

For anyone else experiencing this problem, I was using this code on a loadStream . . .

channel=1, loops=-1, fadein=5000

I made the mistake of thinking that fadein would not have any effect on my next audio play and thought that I would only have to reset the channel after usingn fadeout. However, this was not the case as it needed to be reset after fadein also as this had a knock on effect on the next audio play.

Great!

views:1453 update:2011/9/29 9:22:17
corona forums © 2003-2011