sound1=createobject("roAudioResource","pkg:/sounds/boom.wav")
sound2=createobject("roAudioResource","pkg:/sounds/laser.wav")
numchannels=sound1.maxSimulStreams()
volume=100
if numchannels < 2 then
print "Two channels not supported"
stop
else
print numchannels;" are supported"
end if
channel=0
sound1.trigger(volume,channel)
channel=1
sound2.trigger(volume,channel)
"RokuMarkn" wrote:Perhaps 2400 alone should be 2, since it has the guts of a 3xxx?
I believe 24**, 27** and the TVs are 1; all the rest are 2.
model = createObject("roDeviceInfo").getModel()
isDualChannelAudio = (model > "3" and model < "5") or left(model, 4) = "2400"
"RokuMarkn" wrote:Because... i am stupid? :mrgreen:
Yes that sounds correct, but you wouldn't actually want to write code like that would you? Why not just use maxSimulStreams?
isDualChannelAudio = mid(createObject("roDeviceInfo").getVersion(), 3) > "3" and createObject("roAudioResource", "deadend").maxSimulStreams() > 1
"Komag" wrote:
It's been a while since I visited this issue, but today I fired up my Roku 1 2710 and found that it thinks it now has two simultaneous audio channels (maxSimulStreams reports 2). Is this actually true somehow?
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!