AudioStream.sleela
audio/sleela/AudioStream.sleela · 12 line(s) · sleela
#sleela 2.1
// Stream contract. Device handles remain VM-safe values; OS stream backends are separate.
class AudioStream {
static bool open(String platform, int sampleRate, int channels) {
return platform == audioPlatform() && sampleRate > 0 && channels > 0;
}
static bool start(bool opened) { return opened; }
static bool stop(bool running) { return running; }
static bool close() { return true; }
}