PVcollib  1.5.0
A devkit for ColecoVision
Data Structures | Macros | Functions | Variables
sound.h File Reference

coleco generic sound support. More...

#include <coleco/coltypes.h>

Go to the source code of this file.

Data Structures

struct  sound_t
 definition of sound area More...
 

Macros

#define SOUNDAREA1   0x702b
 sound areas 1 to 6 available pour channels
 

Functions

u8 snd_isplaying (u8 sound_number)
 retrieve if channel is playing or not More...
 
void snd_settable (void *snd_table)
 define the sound table used for playing sound More...
 
void snd_stopall (void)
 mute all channels More...
 
void snd_stopplay (u8 sound_number)
 stop a sound specified but sound_number More...
 

Variables

volatile u8 snd_mute
 put 1 to snd_mute to disable sound update.
 

Detailed Description

coleco generic sound support.

Function Documentation

◆ snd_isplaying()

snd_isplaying ( u8  sound_number)

retrieve if channel is playing or not

Parameters
sound_numberaid of sound in sound table
Returns
0xff is sound_number is still playing, 0x00 if not

◆ snd_settable()

snd_settable ( void *  snd_table)

define the sound table used for playing sound

Parameters
snd_tableaddress of sound table
Returns
nothing
Examples:
audio/music/music.c, audio/simplesound/ssound.c, and games/diamond/diamond.c.

◆ snd_stopall()

snd_stopall ( void  )

mute all channels

Returns
nothing
Examples:
audio/music/music.c, audio/simplesound/ssound.c, and games/diamond/diamond.c.

◆ snd_stopplay()

snd_stopplay ( u8  sound_number)

stop a sound specified but sound_number

Parameters
sound_numberaid of sound in sound table
Returns
nothing