diff options
| author | sik | 2018-01-22 19:19:19 -0300 |
|---|---|---|
| committer | sik | 2018-01-22 19:19:19 -0300 |
| commit | 8fdf49b8e53fd3063ccc2eb51c49c3b6e4d073bb (patch) | |
| tree | addb91518f99d4df76986d3e282e41cd6baf077e /doc/api-c.txt | |
| parent | a2f67fbe8fe6b27f661e70ce2b6b75c17cd1fe54 (diff) | |
Echo 1.6 release... kind of a mess, will clean up in further commits I guess
Diffstat (limited to 'doc/api-c.txt')
| -rw-r--r-- | doc/api-c.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/api-c.txt b/doc/api-c.txt index 8e5c61c..2c879ef 100644 --- a/doc/api-c.txt +++ b/doc/api-c.txt @@ -138,6 +138,17 @@ void echo_set_volume_ex(const uint8_t *ptr) been changed for the sake of expansion. Currently the extra bytes are ignored, but consider adapting your code (just set them to zero). +const uint8_t echo_fm_vol_table[] +const uint8_t echo_psg_vol_table[] + These two are not subroutines but rather look-up tables. They have 64 + byte-sized entries and they're used to convert a linear volume value into + a hardware volume value (e.g. for echo_set_volume_ex). + + To give an idea of how to use these: take what you'd pass as argument to + echo_set_volume divided by 4 (shift right by 2), then use it as an index + to these arrays. The byte will be the volume as the hardware (or + echo_set_volume_ex) wants it. + ============================================================================= *** Settings *** @@ -163,6 +174,14 @@ void echo_set_pcm_rate(uint8_t rate) (which can hamper Echo's ability to process complex streams). Be careful if you increase the sample rate. +void echo_set_stereo(int enable) + + Toggles whether sound is forced to mono (enable == 0) or if stereo panning + works (enable != 0). Will take effect for all following panning events. + Can be used to implement a mono/stereo toggle in games. + + By default Echo is in stereo mode. + ============================================================================= *** Raw access *** |
