There's nothing in the documentation that says what type of WAV files are supported. I have some mono, 8 bits/sample, 11.025kHz sampling rate files that don't play when triggered, but CreateObject returns a valid object. I assume they aren't supported. I have at least one file that appears to have the same characteristics as the others, but CreateObject returns invalid. So the question is, what are the requirements for WAV files?
The next issue is GetMetaData. For the above files, I get different results whether I'm running on 3.0 or 4.1 of the firmware. Neither gets it completely right, but 3.0 gets every parameter wrong. It always shows 2 channels, 16 bits/sample, and 44100 samples per second for any WAV file I try, even a mono, 16 bits/sample, 22.05kHz sampling rate file that plays. The length is wrong as well. v4.1 shows the file as mono and gives the correct length, but the sampling rate is given as 44.1kHz. v4.1 gives correct numbers for everything except the sampling rate (which always seems to be 44.1kHz) for the 8-bit, mono, 11.025kHz files that don't play.
Any help would be appreciated.
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.