Domanda

I want to analyse the recorded microphone-sound of my Android application.

Unfortunately the Visualizer is only able to work on an AudioTrack that is currently being played back. Currently I'm recording with AudioRecord and copy the data into an AudioTrack where the visualizer is listening on. But this architecture causes a terrible playback-record-loop.

One workaround was to turn the volume of the AudioTrack down to the lowest possible level while recording, but this doesn't sound like a good solution at all.

Is there any alternative to the Visualizer class that provides means to capture FFT-data from the recorded track?

È stato utile?

Soluzione 2

I solved it now, by analyzing the data directly from the AudioRecord as described in Android audio FFT to retrieve specific frequency magnitude using audiorecord.

Altri suggerimenti

additional. it says

AudioFlinger createEffect_l() effect Visualizer (flags 00000008) created on wrong thread type 3 AudioEffect set(): AudioFlinger could not create effect, status: -22

after searching "created on wrong thread type" it found that there's something wrong with Visualizing input signal. I struggled so far but was fruitless.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top