I can seem to get it working with a single sound file, however, it is intermittent with others. For example, it would be one beep/boop off, playing the beep from the previous "hit" when the boop from the current hit was called. This is not a bug in my code as far as I can tell. I'm trying to produce a small program to isolate and reproduce the issue, but I thought I'd ask in the meantime.
Anyone out there have more experience with small short duration wav files with the 3.0 SDK and have them work wonkey? Anyone else experience this error or other errors with roAudioResource?
Additionally, it appears that loading over 24 sounds is rebooting my box (telnet: "connection to host lost"). For example:
Code: Select all
AudioObjects[0]=CreateObject("roAudioResource", "pkg:/sounds/sound1234.wav")
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blip.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipC0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipC0S.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipD0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipE0b.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipE0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipF0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipF0S.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipG0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipA0b.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipA0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipB0b.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipB0.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipC1.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipC1S.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipD1.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipE1b.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipE1.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipF1.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipF1S.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipG1.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipA1b.wav"))
AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipA1.wav"))
'AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipB1b.wav"))
' AudioObjects.push(CreateObject("roAudioResource", "pkg:/sounds/blipB1.wav"))
Will work. But if I remove the comment from either of the last 2 lines, it reboots the box. IDK if it's a total # bytes loaded issue (the files are mostly 4k each, one is 18K). I tried dropping the 18K file out and adding the last 2 4K files, to no avail. Is there some limit to the # of roAudioResources I can load at once?