audio::AudioHandler¶
Audio handler class.
Public Functions¶
Name | |
---|---|
def | init(self self) Initialise the class. |
def | queue_audio(self self, audio_type audio_type, left left, right right) Queue an audio file for playing. |
def | play_file(self self, filename filename, filetype filetype, left left, right right) Actually play an audio file. |
def | loop(self self) Perform the loop - check if the queue is empty, if not play the audio. |
Public Attributes¶
Name | |
---|---|
list | directories |
dictionary | audio_files |
dictionary | audio_counters |
dictionary | audio_count |
root | |
audio_queue |
Public Functions Documentation¶
function init¶
Initialise the class.
function queue_audio¶
Queue an audio file for playing.
function play_file¶
Actually play an audio file.
function loop¶
Perform the loop - check if the queue is empty, if not play the audio.
Public Attributes Documentation¶
variable directories¶
variable audio_files¶
variable audio_counters¶
variable audio_count¶
variable root¶
variable audio_queue¶
Updated on 2022-11-28 at 15:55:23 +0000