<commit_before>local class = require 'core/middleclass.lua'


local AudioSource = class('core/AudioSource')

function AudioSource:initialize( triggerCallback )
    self.handle = NATIVE.CreateAudioSource(triggerCallback or false)
end

function AudioSource:setRelative( relative )
    NATIVE.SetAudioSourceRelative(self.handle, relative)
end

function AudioSource:setLooping( looping )
    NATIVE.SetAudioSourceLooping(self.handle, looping)
end

function AudioSource:setPitch( pitch )
    NATIVE.SetAudioSourcePitch(self.handle, pitch)
end<commit_msg>Finished refactoring audio module.<commit_after>local class = require 'core/middleclass.lua'


local AudioSource = class('core/AudioSource')

function AudioSource.static:playAll()
    NATIVE.PlayAllAudioSources()
end

function AudioSource.static:pauseAll()
    NATIVE.PauseAllAudioSources()
end

function AudioSource:initialize( triggerCallback )
    self.handle = NATIVE.CreateAudioSource(triggerCallback or false)
end

function AudioSource:setRelative( relative )
    NATIVE.SetAudioSourceRelative(self.handle, relative)
end

function AudioSource:setLooping( looping )
    NATIVE.SetAudioSourceLooping(self.handle, looping)
end

function AudioSource:setPitch( pitch )
    NATIVE.SetAudioSourcePitch(self.handle, pitch)
end
{'fraction_non_alphanumeric': 0.0840534171249018, 'fraction_numerical': 0.0, 'mean_word_length': 6.450292397660819, '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': '6396423', 'n_tokens_mistral': 370, 'n_tokens_neox': 367, 'n_words': 76}