From 2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 3 Feb 2022 11:58:26 -0500 Subject: Shorten he name of XAS_AUDIO_ constants --- src/bank.c | 2 +- src/riff.c | 4 ++-- src/synth.c | 2 +- src/vox.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bank.c b/src/bank.c index 8c17bb3..726de08 100644 --- a/src/bank.c +++ b/src/bank.c @@ -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); diff --git a/src/riff.c b/src/riff.c index 0184a30..ce788f5 100644 --- a/src/riff.c +++ b/src/riff.c @@ -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) { diff --git a/src/vox.c b/src/vox.c index 7fec432..3433121 100644 --- a/src/vox.c +++ b/src/vox.c @@ -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); -- cgit v1.2.3