lucia.audio.openal package¶
Submodules¶
lucia.audio.openal.loaders module¶
Utility functions for loading sounds.
-
lucia.audio.openal.loaders.
load_file
(fname)¶ Loads an audio file into a SoundData object.
-
lucia.audio.openal.loaders.
load_ogg_file
(fname)¶ Loads a ogg encoded audio file converts it to wav and returns a SoundData object.
-
lucia.audio.openal.loaders.
load_wav_file
(fname)¶ Loads a WAV encoded audio file into a SoundData object.
-
lucia.audio.openal.loaders.
load_wav_file_mem
(data)¶ Loads WAV encoded audio data into a SoundData object.
lucia.audio.openal.sound module¶
lucia.audio.openal.soundpool module¶
-
class
lucia.audio.openal.soundpool.
SoundPool
(rolloff_factor=0.5, max_distance=10)¶ Bases:
lucia.audio.soundpool.SoundPool
-
is_hrtf_enabled
()¶
-
pause_all
()¶
-
play_1d
(soundfile, x, looping=False, rolloff_factor=-1)¶
-
play_2d
(soundfile, x, y, looping=False, rolloff_factor=-1)¶
-
play_3d
(soundfile, x, y, z, looping=False, pitch=1.0, volume=1.0, rolloff_factor=0.5)¶
-
play_stationary
(soundfile, looping=False)¶
-
resume_all
()¶
-
set_hrtf
(num)¶
-
stop
(source)¶
-
update_audio_system
()¶
-
update_listener1d
(x)¶
-
update_listener2d
(x, y)¶
-
update_listener3d
(x, y, z, direction=90, zdirection=0)¶
-
update_sound_position
(source, x, y, z)¶
-
Module contents¶
-
class
lucia.audio.openal.
OpenALAudioBackend
¶ Bases:
lucia.audio.backend.AudioBackend
-
enable_hrtf
(should_enable)¶
-
initialize
()¶
-
is_hrtf_compatible
()¶
-
quit
()¶
-
update_audio_system
()¶
-
-
exception
lucia.audio.openal.
SoundNotPlayingError
¶ Bases:
ValueError
-
exception
lucia.audio.openal.
UnsupportedAudioFormatError
¶ Bases:
Exception