lucia.audio.bass package

Submodules

lucia.audio.bass.sound module

class lucia.audio.bass.sound.Sound

Bases: lucia.audio.sound.Sound

close()
get_source_object()
load(filename='')
pan
pause()
pitch
play()
play_looped()
play_wait()
resume()
stop()
volume

lucia.audio.bass.sound_positioning module

lucia.audio.bass.sound_positioning.position_sound_1d(handle, listener_x, source_x, pan_step, volume_step)
lucia.audio.bass.sound_positioning.position_sound_2d(handle, listener_x, listener_y, source_x, source_y, theta, pan_step, volume_step, behind_pitch_decrease, keep_pitch=False)
lucia.audio.bass.sound_positioning.position_sound_3d(handle, listener_x, listener_y, listener_z, source_x, source_y, source_z, theta, pan_step, volume_step, behind_pitch_decrease, keep_pitch=False)
lucia.audio.bass.sound_positioning.position_sound_custom_1d(handle, listener_x, source_x, pan_step, volume_step, start_pan, start_volume)
lucia.audio.bass.sound_positioning.position_sound_custom_2d(handle, listener_x, listener_y, source_x, source_y, theta, pan_step, volume_step, behind_pitch_decrease, start_pan, start_volume, start_pitch, keep_pitch)
lucia.audio.bass.sound_positioning.position_sound_custom_3d(handle, listener_x, listener_y, listener_z, source_x, source_y, source_z, theta, pan_step, volume_step, behind_pitch_decrease, start_pan, start_volume, start_pitch, keep_pitch)

lucia.audio.bass.soundpool module

class lucia.audio.bass.soundpool.SoundPool(max_distance=70, pan_step=20.0, volume_step=2.0, behind_pitch_decrease=4.0)

Bases: lucia.audio.soundpool.SoundPool

clean_unused()
destroy_all()
destroy_sound(s)
get_source_object(filename)
pause_all()
pause_sound(s)
play_1d(filename, listener_x, sound_x, looping, persistent=False)
play_2d(filename, listener_x, listener_y, sound_x, sound_y, looping, persistent=False)
play_3d(filename, listener_x, listener_y, listener_z, sound_x, sound_y, sound_z, rotation=0, looping=False, persistent=False, keep_pitch=False)
play_extended_1d(filename, listener_x, sound_x, left_range, right_range, looping, offset, start_pan, start_volume, start_pitch, persistent=False)
play_extended_2d(filename, listener_x, listener_y, sound_x, sound_y, left_range, right_range, backward_range, forward_range, looping, offset, start_pan, start_volume, start_pitch, persistent=False)
play_extended_3d(filename, listener_x, listener_y, listener_z, sound_x, sound_y, sound_z, rotation, left_range, right_range, backward_range, forward_range, upper_range, lower_range, looping, offset, start_pan, start_volume, start_pitch, persistent, keep_pitch)
play_stationary(filename, looping=False, persistent=False)
play_stationary_extended(filename, looping, offset, start_pan, start_volume, start_pitch, persistent=False)
resume_all()
resume_sound(s)
sound_is_active(s)
sound_is_playing(s)
update_audio_system()
update_listener_1d(listener_x)
update_listener_2d(listener_x, listener_y)
update_listener_3d(listener_x, listener_y, listener_z, rotation)
update_sound_1d(s, x)
update_sound_2d(s, x, y)
update_sound_3d(s, x, y, z)
update_sound_range_1d(s, left_range, right_range)
update_sound_range_2d(s, left_range, right_range, backward_range, forward_range, rotation)
update_sound_range_3d(s, left_range, right_range, backward_range, forward_range, lower_range, upper_range, rotation)
update_sound_start_values(s, start_pan, start_volume, start_pitch)
class lucia.audio.bass.soundpool.SoundPoolItem(filename, **kwargbs)

Bases: object

get_total_distance(listener_x, listener_y, listener_z)
reset(pack='sounds/')
update(listener_x, listener_y, listener_z, rotation, max_distance)
update_listener_position(listener_x, listener_y, listener_z, rotation)

Module contents

class lucia.audio.bass.BassAudioBackend

Bases: lucia.audio.backend.AudioBackend

enable_hrtf(should_enable)
initialize()
is_hrtf_compatible()
quit()
update_audio_system()