summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-03 11:58:26 -0500
committerXANTRONIX Development2022-02-03 11:58:26 -0500
commit2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d (patch)
tree76a7b31b34ce7cc35ae8d68ac2b5deedd1497b06 /src
parent7f52b9c23cb6e70c90cd01316f4a703962c3f92f (diff)
downloadxas-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.c2
-rw-r--r--src/riff.c4
-rw-r--r--src/synth.c2
-rw-r--r--src/vox.c2
4 files changed, 5 insertions, 5 deletions
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);