Re: [linux-audio-dev] reading sound file

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] reading sound file
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: pe helmi  11 2000 - 11:00:14 EST


> unsigned char *soundbuf;
>
> soundbuf = (unsigned char *) malloc (total_size_of_sound_data_in_bytes);
> fread (soundbuf, total_size_of_sound_data_in_bytes, sound_data_file);

Gack. Make that:

> fread (soundbuf, total_size_of_sound_data_in_bytes, 1, sound_data_file);


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:23:27 EST