From 97de81f5744e02ecdb11c211189e1cd6d87074fc Mon Sep 17 00:00:00 2001 From: hgn Date: Fri, 8 Dec 2023 15:45:06 +0000 Subject: [PATCH] option to force audio compression --- vg_audio.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vg_audio.h b/vg_audio.h index cef4617..dbc6ff6 100644 --- a/vg_audio.h +++ b/vg_audio.h @@ -1178,6 +1178,15 @@ static void audio_clip_load( audio_clip *clip, void *lin_alloc ) if( lin_alloc == NULL ) lin_alloc = vg_audio.audio_pool; +#ifdef VG_AUDIO_FORCE_COMPRESSED + + if( (clip->flags & AUDIO_FLAG_FORMAT) != k_audio_format_bird ){ + clip->flags &= ~AUDIO_FLAG_FORMAT; + clip->flags |= k_audio_format_vorbis; + } + +#endif + /* load in directly */ u32 format = clip->flags & AUDIO_FLAG_FORMAT; -- 2.25.1