projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
934ae08
)
option to force audio compression
author
hgn
<hgodden00@gmail.com>
Fri, 8 Dec 2023 15:45:06 +0000
(15:45 +0000)
committer
hgn
<hgodden00@gmail.com>
Fri, 8 Dec 2023 15:45:06 +0000
(15:45 +0000)
vg_audio.h
patch
|
blob
|
history
diff --git
a/vg_audio.h
b/vg_audio.h
index cef461787ab0a44754e95f6f5ba97e3c6ca8a4c5..dbc6ff69b425cab9f6cee26d49c751fb0f23523b 100644
(file)
--- 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;