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.


Messages - Barsay

Pages: [1]
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?

2
Audio / Re: About streaming... How is Stereo managed?
« on: January 13, 2020, 08:39:19 pm »
Thanks!

knowing that it streams as interleaved (I also checked it by plotting the buffer's 15 milion samples on R :S), I'm gonna check the R-L order on the file! ;)

3
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!

-Barsay

Pages: [1]
anything