diff options
author | XANTRONIX Development | 2022-02-03 11:58:26 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-03 11:58:26 -0500 |
commit | 2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d (patch) | |
tree | 76a7b31b34ce7cc35ae8d68ac2b5deedd1497b06 /src | |
parent | 7f52b9c23cb6e70c90cd01316f4a703962c3f92f (diff) | |
download | xas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.tar.gz xas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.tar.bz2 xas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.zip |
Shorten he name of XAS_AUDIO_ constants
Diffstat (limited to 'src')
-rw-r--r-- | src/bank.c | 2 | ||||
-rw-r--r-- | src/riff.c | 4 | ||||
-rw-r--r-- | src/synth.c | 2 | ||||
-rw-r--r-- | src/vox.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -102,7 +102,7 @@ xas_audio_stream *xas_bank_stream_new(xas_bank *bank) { return xas_audio_stream_new_source((xas_audio_fill)bank_fill, (xas_audio_cleanup)bank_cleanup, bank, - XAS_AUDIO_STREAM_MONO, + XAS_AUDIO_MONO, bank->sample_size, bank->sample_rate, bank->entry_size); @@ -143,8 +143,8 @@ static int wave_header_parse(xas_riff *riff, } switch (header->wave.channels) { - case XAS_AUDIO_STREAM_MONO: - case XAS_AUDIO_STREAM_STEREO: + case XAS_AUDIO_MONO: + case XAS_AUDIO_STEREO: break; default: diff --git a/src/synth.c b/src/synth.c index 2e77748..6dd14ea 100644 --- a/src/synth.c +++ b/src/synth.c @@ -45,7 +45,7 @@ xas_audio_stream *xas_synth_new(size_t sample_size, if ((stream = xas_audio_stream_new_source((xas_audio_fill)synth_fill, (xas_audio_cleanup)synth_cleanup, synth, - XAS_AUDIO_STREAM_MONO, + XAS_AUDIO_MONO, sample_size, sample_rate, buffer_size)) == NULL) { @@ -275,7 +275,7 @@ xas_audio_stream *xas_vox_stream_new(xas_vox *vox) { return xas_audio_stream_new_source((xas_audio_fill)vox_fill, (xas_audio_cleanup)vox_cleanup, vox, - XAS_AUDIO_STREAM_MONO, + XAS_AUDIO_MONO, vox->sample_size, vox->sample_rate, vox->buffer_size); |