diff options
| author | 2025-03-31 19:16:50 -0400 | |
|---|---|---|
| committer | 2025-03-31 19:16:50 -0400 | |
| commit | c8b3ed01a41c0215a4a33ce8468b162463129600 (patch) | |
| tree | b29fad1faf0d172e2e46be9a73f9b3bc73f8b29a /src/mixer | |
| parent | 2f34d806e42b6d6299ef46284466b98536485839 (diff) | |
| download | camu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.gz camu-c8b3ed01a41c0215a4a33ce8468b162463129600.tar.bz2 camu-c8b3ed01a41c0215a4a33ce8468b162463129600.zip | |
Overall style change, small fixes
- Tweak sink switch_to() order.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/mixer')
| -rw-r--r-- | src/mixer/mixer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c index 079b582..fbe3105 100644 --- a/src/mixer/mixer.c +++ b/src/mixer/mixer.c @@ -131,6 +131,10 @@ f64 camu_mixer_get_latency(struct camu_mixer *mixer) static void add_buffer_internal(struct camu_mixer *mixer, struct camu_audio_buffer *buf) { + struct camu_audio_buffer *active; + al_array_foreach(mixer->buffers, i, active) { + al_assert(active != buf); + } camu_audio_buffer_set_volume(buf, mixer->volume); #ifdef CAMU_MIXER_THREADED al_atomic_store(u8)(&buf->ref, 1, AL_ATOMIC_RELAXED); |