<commit_before>package snow.modules.interfaces;

import snow.api.buffers.Uint8Array;
import snow.api.Promise;
import snow.systems.assets.Asset.AssetAudio;
import snow.systems.audio.AudioSource;
import snow.systems.audio.AudioInstance;
import snow.types.Types;

@:noCompletion
@:allow(snow.systems.audio.Audio)
interface Audio {

    private var app: snow.Snow;
    private function onevent(event:SystemEvent):Void;
    private function shutdown():Void;

    function play(_source:AudioSource, _volume:Float, _paused:Bool) : AudioHandle;
    function loop(_source:AudioSource, _volume:Float, _paused:Bool) : AudioHandle;
    function pause(_handle:AudioHandle) : Void;
    function unpause(_handle:AudioHandle) : Void;
    function stop(_handle:AudioHandle) : Void;<commit_msg>Audio; add data_from_load and data_from_bytes interface for modules<commit_after>package snow.modules.interfaces;

import snow.api.buffers.Uint8Array;
import snow.api.Promise;
import snow.systems.assets.Asset.AssetAudio;
import snow.systems.audio.AudioSource;
import snow.systems.audio.AudioInstance;
import snow.types.Types;

@:noCompletion
@:allow(snow.systems.audio.Audio)
interface Audio {

    private var app: snow.Snow;
    private function onevent(event:SystemEvent):Void;
    private function shutdown():Void;

    function data_from_load(_path:String, ?_is_stream:Bool=false, ?_format:AudioFormatType) : Promise;
    function data_from_bytes(_id:String, _bytes:Uint8Array, ?_format:AudioFormatType) : Promise;

    function play(_source:AudioSource, _volume:Float, _paused:Bool) : AudioHandle;
    function loop(_source:AudioSource, _volume:Float, _paused:Bool) : AudioHandle;
    function pause(_handle:AudioHandle) : Void;
    function unpause(_handle:AudioHandle) : Void;
    function stop(_handle:AudioHandle) : Void;
{'fraction_non_alphanumeric': 0.10570005534034312, 'fraction_numerical': 0.0016602102933038186, 'mean_word_length': 6.203187250996016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '647046', 'n_tokens_mistral': 563, 'n_tokens_neox': 538, 'n_words': 110}