// audio_engine — lifecycle del engine de audio (miniaudio wrapper).
// Issue 0072b — runtime gamedev nucleo (PC desktop + WASM + futuro mobile).
#pragma once

namespace fn::audio {

struct Engine {
    void* impl;  // ma_engine* opaco
    bool  ok;
};

// Crea engine con device default. Engine.ok=false si falla.
Engine engine_init();

// Libera engine. Idempotente con Engine.ok=false.
void engine_shutdown(Engine& e);

// Master volume 0..1.
void engine_set_volume(Engine& e, float v);

}  // namespace fn::audio
