Re: Alshort, and buffer samples order.

Daniel PEACOCK <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <OFF76A9DB3.D1F7FDAE-ON80257714.00596B21-80257714.005A732C@cli.creaf.com>
Hi,

-Does an ALshort work exactly in the same way as a short?

I think so - is there something specific you are concerned about?  Note :
the endian-ness will determined by the host platform.  If you are on
Windows PC ALshorts will be little-endian.  This applies to audio data as
well.  So, for example, you would need to swap bytes around if you were to
play a standard PC wave file on the Xbox 360 AL implementation.

-In wich way does alcCaptureSamples sort the samples positions in the
array?

The oldest samples recorded will be at the start of the array and newer
samples adding to the end (unless there is a wrap-around*).  In other
words, playing the samples from the beginning of the array to the end will
re-play the recording.  I think all platforms should follow the pattern
Left, Right, Left, Right, ... for the order of the samples if you are
recording a stereo format.

*A wrap-around may occur if the calling application does not consume
samples from the capture buffer fast enough and the AL implementation has
implemented a circular buffer to store audio samples from the recording
source.

Dan
Creative Labs (UK) Ltd.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at 79 Knightsbridge, London SW1X 7RB



                                                                           
             Fruskus                                                       
             <karlonchiz@hotma                                             
             il.com>                                                    To 
             Sent by:                  [email protected]      
             openal-bounces@op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] Alshort, and buffer        
                                       samples order.                      
             29/04/2010 12:21                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Hi,

I think these are very obvious questions, but I would like to be completely
sure about them.

-Does an ALshort work exactly in the same way as a short?

-In wich way does alcCaptureSamples sort the samples positions in the
array?
The first position should be for the first thing you hear, shouldn't it?

Thanks in advance
--
View this message in context:
http://old.nabble.com/Alshort%2C-and-buffer-samples-order.-tp28399282p28399282.html

Sent from the OpenAL - User mailing list archive at Nabble.com.

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0007C6A6

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.