Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

audio.reserveChannels and audio.reservedChannels don't agree
Started by tap32 Nov 19 2019 08:23 AM

No replies to this topic
android audio reservedchannels
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Contributor

  • 257 posts
  • Corona SDK

I'm trying to get an old iPad app I wrote in Corona to run on Android tablets. I've come across an odd issue which boils down to these two asserts. The last one fails:

assert(2 == audio.reserveChannels(2), "Couldn't reserve audio channels")
assert(audio.reservedChannels==2, "reserved channels does not match expected value. rc: " .. audio.reservedChannels)

It turns out audio.reservedChannels == 0 at that last assert. Is that normal? It wasn't an issue on iOS


This is happening before any audio is played. However streams have been loaded


Also tagged with one or more of these keywords: android, audio, reservedchannels