Forum Discussion

Romans_I_XVI's avatar
Romans_I_XVI
Roku Guru
11 years ago

Optimal bitrate for roAudioResource

So after spending a few days now trying to make my game optimized and running as smoothly as possible I was somewhat discouraged that after all of my work I was still having times of the entire game freezing up for a split second. This was always occurring around the time I would say destroy a few ships and absorb a few bullets at the same time. I thought there could possibly be too many collisions happening and data being processed and that was slowing it down. But after optimizing my game extensively and investigating this thoroughly I determined it was the Roku hanging while calling the roAudioResource SomeSound.Trigger() . But if that's the case I'm supposedly out of luck right? Wrong! I just went here http://audio.online-convert.com/convert-to-wav . Uploaded the .wav files I had and (re)converted them to .wav with the bitrate set to 16Bit . Now the problem is solved!

Any thoughts on this? Is this a known issue?

1 Reply

  • renojim's avatar
    renojim
    Community Streaming Expert
    "Romans_I_XVI" wrote:
    converted them to .wav with the bitrate set to 16Bit . Now the problem is solved!

    The bitrate set to 16-bit? I'm guessing you mean sample size (or bit resolution as that link refers to it as).

    Out of curiosity, what sample size and sample rate were your original WAV files? The only issues I'm aware of is that some combinations of sample size and sample rate didn't work at all and sometimes very short WAV files wouldn't play, but it's been a long time since I've experimented and those issues may have been eliminated.

    -JT