Re: [AD] complete example of streams

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


At 02:28 PM 8/16/01 +0200, Eric Botcazou wrote:
>> It's on the Web at http://intelmp1.colgate.edu/rod/exstream
>
>There is a problem with your modified example: it is not portable because
>open() and lseek() are POSIX functions, not Standard C ones. Remember that
I guess I have to use fopen, etc.

>examples must compile out of the box on any platform supported by Allegro
>(DOS, Windows, Linux, FreeBSD, Irix, BeOS, QNX, MacOS) and at least one
>compiler (Microsoft VC++) is not POSIX-compliant.
>
>Moreover, what's exactly the point of this modified example ?

The program reads data from a file containing data from a WAV file data
chunk. The example demonstrates the need to convert data from signed to
unsigned and how to stop the audio device after the media has finished
playing. The current example doesn't demonstrate these important concepts. 
 
********************************************
* Make affirming your wife a top priority. *
*                  - David Rollinson       *
********************************************



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/