Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Barsay

Pages: [1]
Audio / about getting an "internal audio stream"
« on: January 13, 2020, 09:58:41 pm »
Hi everybody!
I'm looking for creating an "internal audio stream", and I'm wondering if I need to program it myself (and in that case, what do you suggest...), or if there already a solution and i just missed it.

Basically I need to get, in real-time, the samples that are currently being played by an audio stream. The goal is  to design a volume meter, an oscilloscope, or process the audio in real-time...

Is it any method to get from a buffer on play()?
A more "manual" solution could be to use the getSamples() function from the soundbuffer, reading the samples every 1/44.100th of second, sync them with the audio output from play()... but i'd like it to be more precise...
Any suggestions?
Is there some solution to get the currently streamed bits by the play() function?

Audio / About streaming... How is Stereo managed?
« on: January 12, 2020, 01:35:47 am »
Hi everybody  :D
I'm trying to display, and write to file, the content of an audio stream. I need to READ NUMBERS!

To do this, i'm using the getSamples() array from my buffer (wav file, 44100, Stereo ), then cycling it.
Now the question is... How are the Stereo samples disposed in the buffer? Are they R L R L, like they are in the wav file?

Thanks in advance!


Pages: [1]