Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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 CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

tap32

[GLOBAL: userInfoPane.html]
tap32
  • Contributor

  • 256 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




[topic_controls]
[/topic_controls]

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