diff options
Diffstat (limited to 'src/client/snd_codec.h')
-rw-r--r-- | src/client/snd_codec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/snd_codec.h b/src/client/snd_codec.h index 7371d5b8..eabd8a6a 100644 --- a/src/client/snd_codec.h +++ b/src/client/snd_codec.h @@ -96,4 +96,13 @@ void S_OGG_CodecCloseStream(snd_stream_t *stream); int S_OGG_CodecReadStream(snd_stream_t *stream, int bytes, void *buffer); #endif // USE_CODEC_VORBIS +// Ogg Opus codec +#ifdef USE_CODEC_OPUS +extern snd_codec_t opus_codec; +void *S_OggOpus_CodecLoad(const char *filename, snd_info_t *info); +snd_stream_t *S_OggOpus_CodecOpenStream(const char *filename); +void S_OggOpus_CodecCloseStream(snd_stream_t *stream); +int S_OggOpus_CodecReadStream(snd_stream_t *stream, int bytes, void *buffer); +#endif // USE_CODEC_OPUS + #endif // !_SND_CODEC_H_ |