Tell me. How to track the size of the data buffer, which event is responsible for this.
I am running a single player with a data analysis function that runs continuously. Data is written to memory.
How to clear the buffer while the player is running?
Re: How to record from a microphone without output to the speakers
>Data is written to memory.
>How to clear the buffer while the player is running?
Hum... Just now I dont have a flash how to do this.
If I understand ok, you want a certain moment stop the output-memory stream, copy his data, then clear the memoy stream and restart the output-memory stream.
The first thing I see is a little lost of data between stop and start memory stream.
The second thing is that I fear that this cannot done with only one player.
Otherwise, what about to simply use 2 players?
When the buffer of rec-player 1 is full (like you decided), stop it and start rec-player 2 and re-create player 1 without start it.
And when the buffer of rec-player 2 is full, stop it and start player 1 and re-create player 2 without start it.
And so on, like ping-pong switching from player 1 to player 2...