Jump to content

  • Log In with Google      Sign In   
  • Create Account

SDL_Audio, questions about the format of the stream


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Joshhua5   Members   -  Reputation: 439

Like
0Likes
Like

Posted 14 June 2014 - 12:06 AM

Let's say I've set my stream to be signed 16 bit numbers, with 2 channels, would this mean that the stream that I'm populating is set up so that the first 16 bits will be the left channel and then the following 16 bits will be the right and the collection of 32 bits is the sample?

[L - 16][R - 16][L - 16][R - 16]
[ Sample - 32 ][ Sample - 32 ]

 

Thank you for any help :)



Sponsor:

#2 Joshhua5   Members   -  Reputation: 439

Like
0Likes
Like

Posted 14 June 2014 - 01:42 AM

I found the answer here: http://wiki.libsdl.org/SDL_AudioSpec

"Channel data is interleaved. Stereo samples are stored in left/right ordering. Quad is stored in front-left/front-right/rear-left/rear-right order. 5.1 is stored in front-left/front-right/center/low-freq/rear-left/rear-right ordering ("low-freq" is the ".1" speaker)."






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS