diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_sdl.c | 2 | ||||
-rw-r--r-- | audio/out/ao_sndio.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/audio/out/ao_sdl.c b/audio/out/ao_sdl.c index d2362a723e..91554d71fe 100644 --- a/audio/out/ao_sdl.c +++ b/audio/out/ao_sdl.c @@ -38,7 +38,7 @@ struct priv float buflen; }; -static int fmtmap[][2] = { +static const int fmtmap[][2] = { {AF_FORMAT_U8, AUDIO_U8}, {AF_FORMAT_S8, AUDIO_S8}, {AF_FORMAT_U16, AUDIO_U16SYS}, diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index 6afe0f9eaf..c528d5729d 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -111,7 +111,8 @@ static int init(struct ao *ao) struct af_to_par { int format, bits, sig; - } static const af_to_par[] = { + }; + static const struct af_to_par af_to_par[] = { {AF_FORMAT_U8, 8, 0}, {AF_FORMAT_S8, 8, 1}, {AF_FORMAT_U16, 16, 0}, @@ -120,7 +121,8 @@ static int init(struct ao *ao) {AF_FORMAT_S24, 24, 1}, {AF_FORMAT_U32, 32, 0}, {AF_FORMAT_S32, 32, 1}, - }, *ap; + }; + const struct af_to_par *ap; int i; p->hdl = sio_open(p->dev, SIO_PLAY, 1); |