Is there a way to get the amplitude of a sound file while it’s playing?
Thanks. [import]uid: 24449 topic_id: 13490 reply_id: 313490[/import]
Is there a way to get the amplitude of a sound file while it’s playing?
Thanks. [import]uid: 24449 topic_id: 13490 reply_id: 313490[/import]
You can get the current set gain/volume of a channel, but if you are asking about reading raw PCM data as it is played back, that is not available.
[import]uid: 7563 topic_id: 13490 reply_id: 49538[/import]
That answers my question. Thanks for the quick response. [import]uid: 24449 topic_id: 13490 reply_id: 49602[/import]
Will more advanced audio functions ever be added to Corona. There are many great things about Corona but I feel like the ability to record, manipulate and programmatically interact with playing audio files is SERIOUSLY lacking. I don’t even see improved audio features even mentioned on the roadmap. I’m just curious where audio stands in the grand scheme of things. Is something better on way or should I look elsewhere? Thanks. [import]uid: 24449 topic_id: 13490 reply_id: 53377[/import]
Sorry, I don’t think the features you describe are on our immediate roadmap. Interacting with the byte streams is tricky for various reasons. There are performance challenges in copying the data between the sound system and Lua. There are also multithreading/concurrency issues that make things trickier. These are things I would eventually like to investigate and expose to Corona, but the more immediate problem is that audio really sucks in general on Android and it’s barely keeping up with what we’re doing with it right now. So Android is sucking up most of our audio bandwidth right now.
[import]uid: 7563 topic_id: 13490 reply_id: 53414[/import]
Speaking of Audio Roadmap: On other SDKs I’ve used involving heavy audio, often there was a “priority” scheme associated with a SFX and then the system would manage the channels accordingly. If numerous sounds were playing, it would resort to evaluating the priority parameter to determine if a channel of a lesser SFX priority would need to be killed and the new SFX triggered.
Is there a capability like this implemented already, and I’m just missing it?
If not, would ANSCA consider this scheme? Thanks. [import]uid: 74844 topic_id: 13490 reply_id: 59070[/import]
Currently there is no automatic priority management system except for the ‘first-come-first-serve’ system already in place. A more advanced priority management system is something I’ve thought about and have worked on for other projects in the past, but it is hard to come up with a simple generalizable system that works for everybody. But it is usually pretty easy to write your own custom management system yourself (in Lua) to meet your own specific needs. (Here is an opportunity for module writers to contribute.)
[import]uid: 7563 topic_id: 13490 reply_id: 59445[/import]