AudioDevice.sleela
audio/sleela/AudioDevice.sleela · 12 line(s) · sleela
#sleela 2.1
// Device identity remains a portable contract; actual hardware belongs to the OS backend.
class AudioDevice {
static bool available(String identifier) {
return identifier != "";
}
static bool compatible(String identifier, int sampleRate, int channels) {
return identifier != "" && sampleRate > 0 && channels > 0;
}
}