Audio¶
from acron.stock import Audio
- class Audio(sound_file_name, volume=1.0, loop=False, autoplay=True, **kw)¶
Bases:
objectA sound:
Audio('assets/laser.wav')plays at once (autoplay);looprepeats;volumeis 0..1. The extension may be omitted (.wav, .ogg, .mp3 are tried). A missing file or a null audio device gives a silent Audio that still answers every call.Inheritance diagram
digraph inheritanced0cee00685 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Audio" [URL="acron.stock.Audio.html#acron.stock.Audio",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A sound: ``Audio('assets/laser.wav')`` plays at once (``autoplay``);"]; }- property loop¶
- property playing¶
- property volume¶