=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/Attic/audio-port.html,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** www/Attic/audio-port.html 2004/11/05 21:57:05 1.9 --- www/Attic/audio-port.html 2007/06/01 19:54:48 1.10 *************** *** 102,122 ****
This is about the smallest code fragment that will deal with most issues. !
AUDIO_ENCODING_SLINEAR
), and you retrieve
! an encoding with endianess (e.g., AUDIO_ENCODING_SLINEAR_LE
).
! Considering that a soundcard does not have to use the same endianess
as your platform, you should be prepared to deal with that.
The easiest way is probably to prepare a full audio buffer, and to use
! swab(3)
if an endianess change is required.
Dealing with external samples usually amounts to:
This is about the smallest code fragment that will deal with most issues. !
AUDIO_ENCODING_SLINEAR
), and you retrieve
! an encoding with endianness (e.g., AUDIO_ENCODING_SLINEAR_LE
).
! Considering that a soundcard does not have to use the same endianness
as your platform, you should be prepared to deal with that.
The easiest way is probably to prepare a full audio buffer, and to use
! swab(3)
if an endianness change is required.
Dealing with external samples usually amounts to: