How do I get the current recording level for the audio going in when using System::recordStart?
As far as I can understand the documentation, both System::getWaveData and Channel::getWaveData provide levels for the audio coming out through the mixer, but I haven’t been able to find anything on the level of the sound being recorded.
- oohmyygoood asked 8 years ago
AFAIK you can only assess an audio stream on playback. So you have to setup a new sound to record into ( set to loop), wait a short moment, then play the sound you are recording.
Have a look at the example "recording", it will do this for you.
The example app "recording" gets the current location using:
[code:gyjxnvhk]result = system->getRecordPosition(0, ¤trecpos)[/code:gyjxnvhk]
…but I can´t see it getting the level, neither directly nor via the loop you suggest?
Am I missing something?
- oohmyygoood answered 8 years ago
I was referring you to the "recording" example not for a level getting method, but for the approach that you must take in order to get access to the audio data so you can then build a level meter.
Have a look at the Pitch Detection example as it shows an alternate approach of accessing the audio data – it uses a custom DSP and then Callbacks to grab the data.
Please login first to submit.