Audio_s16lsb

I have a problem if I have a data type AUDIO_S16LSB how I can use it?
Fox example if I have an AUDIO_U8 I use the Uint8.
With this data type what can I use?___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli… e la tua opinione!
http://www.ymailblogit.com/blog/

I have a problem if I have a data type AUDIO_S16LSB how I can use it?
Fox example if I have an AUDIO_U8 I use the Uint8.
With this data type what can I use?

Since it is “signed 16 bits”, you could use int16_t (standard C99
type) or Sint16 (SDL-specific flavour, really a typedef to the former)
as your data type.

It’s also possible you might need to use some of the stuff in
SDL_endian.h, depending on how your samples are stored, if you have to
support both LSB and MSB, etc…On Mon, Jun 9, 2008 at 1:33 PM, Pinco Pallino wrote:


http://pphaneuf.livejournal.com/

Thanks
I have an other question :
when I have my new vector of Sint16 there is a method to know the length of that new vector?___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli… e la tua opinione!
http://www.ymailblogit.com/blog/

I have an other question :
when I have my new vector of Sint16 there is a method to know the length of
that new vector?

What, a C++ vector? You get to set the length of those, with setsize()!On Tue, Jun 10, 2008 at 8:11 AM, Pinco Pallino wrote:


http://pphaneuf.livejournal.com/

Sorry it is an array
I do Sint16* p= (Sint16*)audio_buf;

where audio_buff is my audio data returned by the function load wave.
But If for the audio_buf there is a variable length,for my new variable p (now I use p with an array) what is his length?___________________________________
Scopri il Blog di Yahoo! Mail: trucchi, novit?, consigli… e la tua opinione!
http://www.ymailblogit.com/blog/