summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-03 11:58:26 -0500
committerXANTRONIX Development2022-02-03 11:58:26 -0500
commit2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d (patch)
tree76a7b31b34ce7cc35ae8d68ac2b5deedd1497b06 /examples
parent7f52b9c23cb6e70c90cd01316f4a703962c3f92f (diff)
downloadxas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.tar.gz
xas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.tar.bz2
xas-2ed5cd82a9e5faaf6137a416674f3ea3542e8d9d.zip
Shorten he name of XAS_AUDIO_ constants
Diffstat (limited to 'examples')
-rw-r--r--examples/say.c14
-rw-r--r--examples/test.c12
2 files changed, 13 insertions, 13 deletions
diff --git a/examples/say.c b/examples/say.c
index 389e338..23b31a2 100644
--- a/examples/say.c
+++ b/examples/say.c
@@ -87,7 +87,7 @@ int main(int argc, char **argv) {
}
if ((vox = xas_vox_new("/usr/bin/text2wave",
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
NULL)) == NULL) {
@@ -95,8 +95,8 @@ int main(int argc, char **argv) {
}
if ((output = xas_riff_new_file(argv[1],
- XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
goto error_riff_new_file;
@@ -106,7 +106,7 @@ int main(int argc, char **argv) {
goto error_vox_stream_new;
}
- if ((synth_l = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_l = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -115,7 +115,7 @@ int main(int argc, char **argv) {
goto error_synth_new_l;
}
- if ((synth_r = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_r = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -124,8 +124,8 @@ int main(int argc, char **argv) {
goto error_synth_new_r;
}
- if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((mixer = xas_mixer_new(XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size)) == NULL) {
goto error_mixer_new;
diff --git a/examples/test.c b/examples/test.c
index 779434c..24e6ba1 100644
--- a/examples/test.c
+++ b/examples/test.c
@@ -83,14 +83,14 @@ int main(int argc, char **argv) {
}
if ((wave = xas_riff_new_file(argv[1],
- XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
O_WRONLY | O_CREAT | O_TRUNC)) == NULL) {
goto error_riff_new_file;
}
- if ((synth_l = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_l = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -99,7 +99,7 @@ int main(int argc, char **argv) {
goto error_synth_new_l;
}
- if ((synth_r = xas_synth_new(XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((synth_r = xas_synth_new(XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size,
(xas_synth_callback_sample)sine_sample,
@@ -108,8 +108,8 @@ int main(int argc, char **argv) {
goto error_synth_new_r;
}
- if ((mixer = xas_mixer_new(XAS_AUDIO_STREAM_STEREO,
- XAS_AUDIO_STREAM_PCM_16_BIT,
+ if ((mixer = xas_mixer_new(XAS_AUDIO_STEREO,
+ XAS_AUDIO_PCM_16_BIT,
sample_rate,
buffer_size)) == NULL) {
goto error_mixer_new;