NDSummary.OnToolTipsLoaded("File:psg.h",{966:"
void PSG_SetRegister(
u8 reg,
u8 value
)
Set the value of a given register
",967:"
u8 PSG_GetRegister(
u8 reg
)
Get the value of a given register
",969:"
void PSG_SetTone(
u8 chan,
u16 period
)
Set the tone period of a given channel (tone generator control register)
",970:"
void PSG_SetNoise(
u8 period
)
Set the noise period (noise generator control register)
",971:"
void PSG_SetMixer(
u8 mix
)
Setup mixer by enabling tune and noise generators for each channel (mixer control enable register)
",972:"
void PSG_SetVolume(
u8 chan,
u8 vol
)
Set the volume of a given channel (Amplitude control register)
",973:"
void PSG_SetEnvelope(
u16 period
)
Set the envelope period (Envelope priod control register)
",974:"
void PSG_SetShape(
u8 shape
)
Set the envelope shape (Envelope shape control register)
",975:"
void PSG_EnableTone(
u8 chan,
bool val
)
Enable/disable tone on the given channel
",976:"
void PSG_EnableNoise(
u8 chan,
bool val
)
Enable/disable noise on the given channel
",977:"
void PSG_EnableEnvelope(
u8 chan,
bool val
)
Enable/disable envelope on the given channel
",978:"
void PSG_Mute()
Silent the PSG (set according registers)
",979:"
void PSG_Resume()
Resume PSG sound
",981:"
void PSG_Apply()
Send data to PSG registers #0 to #13
"});