Mail Archives: djgpp/1997/04/07/07:57:38
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | SB + DJGPP
|
Message-ID: | <3348CBD3.178B@asturies.org>
|
From: | Xorxe <xorxe AT asturies DOT org>
|
Date: | Mon, 07 Apr 1997 12:26:27 +0200
|
Reply-To: | xorxe AT asturies DOT org
|
Organization: | MalaKala#a
|
Nntp-Posting-Host: | pcsig4.etsimo.uniovi.es
|
MIME-Version: | 1.0
|
Lines: | 29
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello everybody:
After some tries, I've ported the file DMAW32.C (for Watcom)
that comes in the package CTSBHWPG.EXE to DJGPP, and all works OK
until I tried the following:
do
{ // Wait for buffer to finish play
while( DMA_buf_to_fill == DMA_buf_now_playing) ;
bytes_in_buffer = FillBuffer(&buffer, &bytes_left);
if(!HS_mode && (bytes_in_buffer < BUFSIZE/2))
Play(bytes_in_buffer, SINGLE_CYCLE);
/* THIS IS THE LINE THAT MAKE THE NOISE IN 8-BIT FILES*/
printf("Bytes Left-> %d",bytes_left);
} while (!End_of_data) ; // End_of_data set in FillBuffer()
Well... if the wav file is 16-bit, then no problem, but if it's an
8-bit file, it makes one 'click' at the printf (at every block transfer)
I don't know what I'm doing wrong... any suggestion?
If you want to see the code take a look at creative site and download
CTSBHWPG.EXE file
thanx in advance
Jorge
- Raw text -