Home /Modules/audio/AudioSystem.sleela

AudioSystem.sleela

audio/sleela/AudioSystem.sleela · 10 line(s) · sleela

#sleela 2.1
// Operating-system boundary. The SLVM exposes platform identity; drivers own hardware enumeration.
class AudioSystem {
  static String platform() { return audioPlatform(); }

  static bool supported(int sampleRate, int channels) {
    return sampleRate > 0 && channels > 0;
  }
}