Hey-
I've been trying to use the peak feature to determine if there is audio playing via the line-in. I'd like to make an audio triggered recorder. I tried to use peak.available but it ends up returning as true the first time because even though there is no audio playing, there is still new initial peak data. I also tried reading the peak value and then only start recording when the peak value is greater than the previous value, but that ended up returning true too. It seems like the peak value reached 1.0 relatively quickly.
Does anyone have advice on how I could achieve a recorder that starts recording when the audio is playing via line-in?
Thanks
I've been trying to use the peak feature to determine if there is audio playing via the line-in. I'd like to make an audio triggered recorder. I tried to use peak.available but it ends up returning as true the first time because even though there is no audio playing, there is still new initial peak data. I also tried reading the peak value and then only start recording when the peak value is greater than the previous value, but that ended up returning true too. It seems like the peak value reached 1.0 relatively quickly.
Does anyone have advice on how I could achieve a recorder that starts recording when the audio is playing via line-in?
Thanks