loadStream Audio problems

I recently had to stop working on my game due to some other client projects and came back, updated to a newer version because I liked some of the possible features and the audio is acting strange.

I searched and is sounds like some people found solutions with the latest builds but I have not (since I’m using the latest as of today) 2011.683.

The game starts up and uses loadStream on an MP3 file. This works. I then load another steam up for character selection and yet another on the map selection. I stop and check for nil and release correctly. Then you pick a level and the audio starts but begins skipping in the iPad simulator (and on the device).

This is frustrating since this just started after upgrading to a newer version. I’m playing with file formats now but it all worked perfectly before, I am having a hard time thinking the audio is having problems.

Also, when I use playSound I have NO problems. I’m currently just moving forward with that while I test with the other files tonight.

So did something change? Can you update me or let me know of anything I need to do differently?

[lua]local backChan = audio.findFreeChannel()
local backgroundSound = audio.loadStream(“res/dayIslandLevel.mp3”)
audio.play( backgroundSound, { channel=backChan, loops=-1, fadein=1000 } )[/lua]

Thanks,

David [import]uid: 27681 topic_id: 17788 reply_id: 317788[/import]

Hey there,

Could you please submit a bug report including a sample to replicate the issue?

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 17788 reply_id: 67873[/import]

Same problem over here.
I am using director Ricardo Rauber.

Each scene a voice-over starts to speak. I used to use loadStream, but I had to change it to loadSound instead.

More annoying is the fact that the loadStream functionality stops to work randomly.

The fact that playing mp3 in the simulator is complety inhearable is something I can get over with.
[import]uid: 75958 topic_id: 17788 reply_id: 67940[/import]

pasztel, are you experiencing the same issues when NOT using director? [import]uid: 52491 topic_id: 17788 reply_id: 67942[/import]

I am also using director, but once again it is strange it all changed without me touching my code. I’ll try and put something together in order to submit a bug report and test case later on today.

-d [import]uid: 27681 topic_id: 17788 reply_id: 67954[/import]

Please do - if you could post the # here once you have I’ll be able to bring it up in our next meeting as well.

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 17788 reply_id: 68069[/import]

Well, I think it was caused by this bug :

[text]
casenum 8754: iOS/ALmixer: Changes to iOS 5 audio workaround for Apple OpenAL regression bug. This fix will hopefully resolve lingering problems with switching between loadStream and loadSound when reusing the same channel. Please test to make sure no new problems were created with loadStream. This Apple bug is tricky to workaround. [/text]

So all the loadStream sounds now do have their own channel. And the loadSound sounds also. [import]uid: 75958 topic_id: 17788 reply_id: 69433[/import]

Hey there,

This issue was resolved in a daily build. (.643 I believe) - so using a recent one you should be fine now.

Peach :slight_smile: [import]uid: 52491 topic_id: 17788 reply_id: 69528[/import]