Roku3 roAudioResource issue

Hi

Having had issues in the past developing on Roku3 only to find Roku2 didn’t like something I’d done - I thought I’d be clever and develop this new channel on Roku2!

Only to find that - while roku2 works perfectly - roku3 doesn’t like roAudioResource use…

I play little wav “voice” clips files at various points - on roku2 fine - I have ensured the clips are tiny just a few seconds long.

On roku3 the same clips seem to get distorted - bits missed out of it so you get the start and end audio.

Also I can crash the app on roku3 just by using roAudioResource.

song = CreateObject(“roAssociativeArray”)
song.sound = CreateObject(“roAudioResource”, “pkg:/Voice/812.wav”)
song.sound.Trigger(100)

HELP!

What is the bit-depth of the .wav file you are using, and the sample-rate of the .wav?

  • Joel

Hi - thanks for reply.

Not sure how to answer exactly what you ask as I have used one of the lowest settings in Adobe Premier Pro to create the files.

Looking at the files in Mediainfo gives:

Wave 77.6KiB 2s 484ms
1 audio stream PCM (Microsfoft)
Audio 256 Kbps 16.0Khz 1 channel PCM (Microsoft)

How can I find what you need to know?

Itunes or Quicktime for mac or windows should be able to tell you the bit depth and bit rate, or Audacity.

  • Joel

Thanks.

I resolved the issue.

Roku 3 doesn’t like audioresource files that aren’t 48khz.

Kevin

I thought they needed to be 44khz?

Sorry - yes 44.

But only on Roku3, roku2 doesn’t seem to be concerned with them.

Roku3 seems to skip or play too fast if not 44khz

But I haven’t seen anywhere that is documented?

The sample wavs issued with the sample source code are 22khz

I think I’m seeing (hearing) an issue with 8kHz 16-bit sample files that used to work. Now they seem to sometimes be chopped off.

-JT