o
    OZŽh”  ã                   @   s‚   d Z ddlZddlZddlZej ej e¡¡d Z	d	dd„Z
edkr?eejƒdkr3e
ejd ƒ dS e
ej e	dd¡ƒ dS dS )
aH   pygame.examples.sound

Playing a soundfile and waiting for it to finish. You'll need the
pygame.mixer module for this to work. Note how in this simple example
we don't even bother loading all of the pygame package.
Just pick the mixer for sound and time for the delay function.

Optional command line argument: audio file name
é    Nc                 C   s`   t j d¡ t j | ¡}tdƒ | ¡ }| ¡ r&tdƒ t j d¡ | ¡ stdƒ t  	¡  dS )zxPlay an audio file as a buffered sound sample

    :param str file_path: audio file (default data/secosmic_low.wav)
    i+  zPlaying Sound...z  ...still going...iè  z...FinishedN)
ÚpgZmixerÚinitZSoundÚprintZplayZget_busyÚtimeÚwaitÚquit)Ú	file_pathÚsoundZchannel© r
   úD/var/www/auris/lib/python3.10/site-packages/pygame/examples/sound.pyÚmain   s   þr   Ú__main__é   Údatazsecosmic_lo.wav)N)Ú__doc__ÚosÚsysZpygamer   ÚpathÚsplitÚabspathÚ__file__Zmain_dirr   Ú__name__ÚlenÚargvÚjoinr
   r
   r
   r   Ú<module>   s   	
ü