Class Hierarchy Compound List File List Compound Members File Members
direct-sound.c File Reference
direct sound access.
More...
Functions
- void ds_switcher (void)
- the sound IRQ handler.
- void ds_play (unsigned char *sample, unsigned length)
- start playing sound. More...
- void ds_stop (void)
- stop playing sound.
Variables
- volatile unsigned* ds_current
- current byte playing & status.
- volatile unsigned char* ds_buf_ptr
- ptr to next byte to play.
- unsigned char * ds_buf_end
- ptrs to start/end of sample.
- unsigned ds_loop_flag
- flag to loop output.
Detailed Description
direct sound access.
-
Author(s):
-
Markus L. Noga <noga@inrialpes.fr>
Function Documentation
void ds_play (unsigned char * sample, unsigned length)
start playing sound.
-
Parameters:
-
sample - an 1 bit / 8 kHz sample. util/sample-convert.pl will perform a conversion for standard wav files.
-
length - sample length in bytes
-
Warning:
-
output sounds horrible
-
cycles not implemented.
-0.1.7 is released under
Mozilla Public License.
Original code © 1998-1999 by Markus L. Noga.