libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
BIOS - INT 15h - Sound

Macros

#define SOUND_VOICE_MUTE   0
 
#define SOUND_VOICE_HALF   2
 
#define SOUND_VOICE_FULL   3
 

Functions

void sound_init (void)
 
void sound_set_channel (uint8_t flags)
 
uint8_t sound_get_channel (void)
 
void sound_set_output (uint8_t flags)
 
uint8_t sound_get_output (void)
 
void sound_set_wave (uint8_t channel, const uint8_t __far *data)
 
void sound_set_pitch (uint8_t channel, uint16_t frequency)
 
uint16_t sound_get_pitch (uint8_t channel)
 
void sound_set_volume (uint8_t channel, uint8_t volume)
 
uint8_t sound_get_volume (uint8_t channel)
 
void sound_set_sweep (uint8_t sweep, uint8_t step_time)
 
void sound_set_noise (uint8_t flags)
 
uint8_t sound_get_noise (void)
 
uint16_t sound_get_random (void)
 
void sound_set_voice_volume (uint8_t left, uint8_t right)
 
uint8_t sound_get_voice_volume (void)
 

Detailed Description

Macro Definition Documentation

◆ SOUND_VOICE_FULL

#define SOUND_VOICE_FULL   3

Definition at line 57 of file sound.h.

◆ SOUND_VOICE_HALF

#define SOUND_VOICE_HALF   2

Definition at line 55 of file sound.h.

◆ SOUND_VOICE_MUTE

#define SOUND_VOICE_MUTE   0

Definition at line 53 of file sound.h.

Function Documentation

◆ sound_get_channel()

uint8_t sound_get_channel ( void )

◆ sound_get_noise()

uint8_t sound_get_noise ( void )

◆ sound_get_output()

uint8_t sound_get_output ( void )

◆ sound_get_pitch()

uint16_t sound_get_pitch ( uint8_t channel)

◆ sound_get_random()

uint16_t sound_get_random ( void )

◆ sound_get_voice_volume()

uint8_t sound_get_voice_volume ( void )

Get channel 2 PCM volume.

Returns
Bits 0-1 contain the right channel volume; bits 2-3 contain the left channel volume

◆ sound_get_volume()

uint8_t sound_get_volume ( uint8_t channel)

◆ sound_init()

void sound_init ( void )

◆ sound_set_channel()

void sound_set_channel ( uint8_t flags)

◆ sound_set_noise()

void sound_set_noise ( uint8_t flags)

◆ sound_set_output()

void sound_set_output ( uint8_t flags)

◆ sound_set_pitch()

void sound_set_pitch ( uint8_t channel,
uint16_t frequency )

◆ sound_set_sweep()

void sound_set_sweep ( uint8_t sweep,
uint8_t step_time )

◆ sound_set_voice_volume()

void sound_set_voice_volume ( uint8_t left,
uint8_t right )

Set channel 2 PCM volume.

Parameters
leftLeft channel volume
rightRight channel volume

◆ sound_set_volume()

void sound_set_volume ( uint8_t channel,
uint8_t volume )

◆ sound_set_wave()

void sound_set_wave ( uint8_t channel,
const uint8_t __far * data )