12 lines
382 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
package kha.audio1;
class Audio {
public static function play(sound: Sound, loop: Bool = false, stream: Bool = false): kha.audio1.AudioChannel {
return new WpfAudioChannel(cast(sound, kha.wpf.Sound).filename);
}
public static function stream(sound: Sound, loop: Bool = false): kha.audio1.AudioChannel {
return new WpfAudioChannel(cast(sound, kha.wpf.Sound).filename);
}
}