<commit_before>
import snow.api.Debug.*;
import snow.types.Types;
import snow.modules.opengl.GL;

typedef UserConfig = {}

@:log_as('app')
class Main extends snow.App {

    function new() {}

    override function config( config:AppConfig ) : AppConfig {

        config.window.title = 'snow audio';

        return config;

    } //config


    override function ready() {

        log('ready');

        app.assets.audio('assets/sound.wav')
            .then(sound_loaded).error(function(e) log(e));

    } //ready

    var sound : AssetAudio;

    function sound_loaded(asset:AssetAudio) {
        sound = asset;
        log('`${sound.audio.id}` : ' + audio);
    }

    override function onmouseup( x:Int, y:Int, button:Int, _, _ ) {

        if(sound != null) {
            var _handle = app.audio.play(sound);
            trace(_handle);
        }<commit_msg>samples; audio; fix logging of audio data<commit_after>
import snow.api.Debug.*;
import snow.types.Types;
import snow.modules.opengl.GL;

typedef UserConfig = {}

@:log_as('app')
class Main extends snow.App {

    function new() {}

    override function config( config:AppConfig ) : AppConfig {

        config.window.title = 'snow audio';

        return config;

    } //config


    override function ready() {

        log('ready');

        app.assets.audio('assets/sound.wav')
            .then(sound_loaded).error(function(e) log(e));

    } //ready

    var sound : AssetAudio;

    function sound_loaded(asset:AssetAudio) {
        sound = asset;
        log('`${sound.audio.id}` : ' + sound.audio);
    }

    override function onmouseup( x:Int, y:Int, button:Int, _, _ ) {

        if(sound != null) {
            var _handle = app.audio.play(sound);
            trace(_handle);
        }
{'fraction_non_alphanumeric': 0.14099660249150622, 'fraction_numerical': 0.0, 'mean_word_length': 2.372137404580153, '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': '2195809', 'n_tokens_mistral': 565, 'n_tokens_neox': 531, 'n_words': 118}