Renamed 'ljud' to 'miniaudio' to better represent what engine it is.

This commit is contained in:
2026-02-08 19:40:53 +01:00
parent 034b318059
commit b518643671
8 changed files with 70 additions and 74 deletions

View File

@@ -2,7 +2,7 @@ package engine
import "core:log"
import "ljud"
import "miniaudio"
Bus :: struct {
backend: ^Bus_Backend,
@@ -13,8 +13,8 @@ create_bus :: proc(engine: ^Engine) -> (Bus, bool) {
bus: Bus
when AUDIO_ENGINE_LJUD {
backend, ok := ljud.create_bus(&engine.backend)
when AUDIO_ENGINE_MINIAUDIO {
backend, ok := miniaudio.create_bus(&engine.backend)
if !ok {
return {}, false
}
@@ -37,8 +37,8 @@ destroy_bus :: proc(engine: ^Engine, bus: ^Bus) {
assert(bus != nil)
assert(bus.backend != nil)
when AUDIO_ENGINE_LJUD {
ljud.destroy_bus(&engine.backend, bus.backend)
when AUDIO_ENGINE_MINIAUDIO {
miniaudio.destroy_bus(&engine.backend, bus.backend)
}
else {
#assert("TODO: SS - Implement for Audio Engine backend")