libww libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
sound.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ SOUND_VOICE_FULL

#define SOUND_VOICE_FULL   3

Definition at line 166 of file sound.h.

◆ SOUND_VOICE_HALF

#define SOUND_VOICE_HALF   2

Definition at line 164 of file sound.h.

◆ SOUND_VOICE_MUTE

#define SOUND_VOICE_MUTE   0

Definition at line 162 of file sound.h.

Function Documentation

◆ sound_get_channel()

static uint16_t sound_get_channel ( void )
inlinestatic

Definition at line 31 of file sound.h.

◆ sound_get_noise()

static uint16_t sound_get_noise ( void )
inlinestatic

Definition at line 138 of file sound.h.

◆ sound_get_output()

static uint16_t sound_get_output ( void )
inlinestatic

Definition at line 52 of file sound.h.

◆ sound_get_pitch()

static uint16_t sound_get_pitch ( uint16_t channel)
inlinestatic

Definition at line 75 of file sound.h.

◆ sound_get_random()

static uint16_t sound_get_random ( void )
inlinestatic

Definition at line 149 of file sound.h.

◆ sound_get_sweep()

static uint16_t sound_get_sweep ( void )
inlinestatic

Definition at line 117 of file sound.h.

◆ 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()

static uint16_t sound_get_volume ( uint16_t channel)
inlinestatic

Definition at line 96 of file sound.h.

◆ sound_init()

static void sound_init ( void )
inlinestatic

Initialize sound system.

Definition at line 11 of file sound.h.

◆ sound_set_channel()

static void sound_set_channel ( uint16_t value)
inlinestatic

Definition at line 21 of file sound.h.

◆ sound_set_noise()

static void sound_set_noise ( uint16_t value)
inlinestatic

Definition at line 128 of file sound.h.

◆ sound_set_output()

static void sound_set_output ( uint16_t value)
inlinestatic

Definition at line 42 of file sound.h.

◆ sound_set_pitch()

static void sound_set_pitch ( uint16_t channel,
uint16_t value )
inlinestatic

Definition at line 65 of file sound.h.

◆ sound_set_sweep()

static void sound_set_sweep ( uint8_t sweep,
uint8_t step_time )
inlinestatic

Definition at line 107 of file sound.h.

◆ 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()

static void sound_set_volume ( uint16_t channel,
uint16_t value )
inlinestatic

Definition at line 86 of file sound.h.

◆ sound_set_wave()

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