Commit d24e05e9 authored by Philipp Schafft's avatar Philipp Schafft 🦁 Committed by Philipp Schafft

Update: Allow "ogg_opus", "ogg_speex", and "ogg_flac" as codec for RoarAudio module

parent 01b72ad1
......@@ -265,7 +265,7 @@
<div class=indentedbox>
The codec to read the audio data in from the sound server.
Currently the values "default", "pcm_s", "pcm_s_le", "pcm_s_be",
"ogg_vorbis" and "ogg_general" are supported.
"ogg_vorbis", "ogg_opus", "ogg_speex", "ogg_flac" and "ogg_general" are supported.
"default" is an alias for "pcm_s" which itself is an alias to "pcm_s_le" or "pcm_s_be" depending
on the native byte order of the system. "ogg_general" should not be used.
</div>
......
......@@ -293,6 +293,12 @@ input_module_t *roar_open_module(module_param_t *params)
break;
case ROAR_CODEC_OGG_GENERAL:
LOG_WARN0("Codec may not work, specify ogg_vorbis for Vorbis streaming");
/* fall through */
case ROAR_CODEC_OGG_OPUS:
/* fall through */
case ROAR_CODEC_OGG_SPEEX:
/* fall through */
case ROAR_CODEC_OGG_FLAC:
mod->type = ICES_INPUT_OGG;
break;
case ROAR_CODEC_OGG_VORBIS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment