libmsx
C library for MSX
|
#include <audio_efx_amp.h>
More...
Functions | |
void | audio_efx_amp (void) |
MSX The AMP effector for the libmsx audio replayer. | |
void | audio_efx_amp_set_volume (uint8_t volume) |
MSX Sets the main volume level to the AMP effector. | |
uint8_t | audio_efx_amp_get_volume (void) |
MSX Gets the current main volume level from the AMP effector. | |
void | audio_efx_amp_fadeout (uint8_t ticks) |
MSX Decrease the main volume level by one for each specified period of time. | |
void | audio_efx_amp_fadein (uint8_t ticks) |
MSX Increase the main volume level by one for each specified period of time. | |
int8_t | audio_efx_amp_get_fade (void) |
MSX Return the status of fade-in/out. | |
#include <audio_efx_amp.h>
The AMP effector controls / attenuate the main-volume for all channels.
void audio_efx_amp | ( | void | ) |
MSX
The AMP effector for the libmsx audio replayer.
Calling this function each time after audio_play()
will control or attenuate the main volume of all PSG, SCC/SCC+, and OPLL channels.
void audio_efx_amp_set_volume | ( | uint8_t | volume | ) |
MSX
Sets the main volume level to the AMP effector.
volume | The main volume level. (0..15) |
uint8_t audio_efx_amp_get_volume | ( | void | ) |
MSX
Gets the current main volume level from the AMP effector.
void audio_efx_amp_fadeout | ( | uint8_t | ticks | ) |
MSX
Decrease the main volume level by one for each specified period of time.
(Fade out)
Fade out every ticks+1
VSYNC counts.
ticks | Period (VSYNC counts ; wait counts) |
void audio_efx_amp_fadein | ( | uint8_t | ticks | ) |
MSX
Increase the main volume level by one for each specified period of time.
(Fade in)
Fade in every ticks+1
VSYNC counts.
ticks | Period (VSYNC counts ; wait counts) |
int8_t audio_efx_amp_get_fade | ( | void | ) |
MSX
Return the status of fade-in/out.
0
if the main volume is constant,