%PDF- %PDF-
Direktori : /usr/share/ibus-table/engine/__pycache__/ |
Current File : //usr/share/ibus-table/engine/__pycache__/it_sound.cpython-312.pyc |
� ��Xe�F � �� � d Z ddlmZ ddlmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZ ej d� Z dZ ddlZdZdZ ddlZdZdZ ddlZdZ G d� d � Zd d �Zedk( rQ ej2 ej4 �� Ze j9 ej: � e j= e� e� yy# ef$ r dZY ��w xY w# ef$ r dZY ��w xY w# ef$ r dZY ��w xY w)z$ Module to play simple error sounds � )�Optional)�AnyNz ibus-tableFTc �t � e Zd ZdZ d$dededdfd�Zdefd�Zdefd�Zdefd �Zdefd �Z defd�Z d%d�Zd ej ddfd�Zd%d�Zdefd�Zd%d�Zd%d�Zd%d�Zdefd�Zd%d�Zd%d�Zed%d�� Zedefd�� Zed%d�� Zed%d�� Zd%d�Zd%d�Zdefd�Zd%d�Z d%d�Z!d%d �Z"defd!�Z#d%d"�Z$d%d#�Z%y)&�SoundObjectz� Class to play sounds When pygames is used, this can play .wav and .mp3 files. When pyaudio is used, only .wav files work. �path_to_sound_file� audio_backend�returnNc � � || _ d | _ d | _ d | _ d | _ d | _ d | _ d| _ d | _ d | _ d| _ || _ d| _ t j j | j � st j# d|� y t j$ | j t j&