
    m i-                     \    d dl Z d dlmZ d dlmZ e j         G d de                      ZdS )    N)
AudioFrame)Packetc                   v    e Zd Zd Zd Zej        ddedz  fd            Zej        dde	dz  fd            Z
dS )	AudioStreamc                     | j         r| j         j        nd }d| j         d| j         d| j         d| j        j         d| dt          |           ddS )	Nz<av.AudioStream # z at zHz, z, z at 0xx>)formatnameindexratelayoutid)selfforms     O/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/av/audio/stream.py__repr__zAudioStream.__repr__   s    #';8t{D>
 > >TY > >DI > > > >$(> >024=> > >	
    c                 ,    t          | j        |          S N)getattrcodec_context)r   r   s     r   __getattr__zAudioStream.__getattr__   s    t)4000r   Nframec                 ~    | j                             |          }|D ]}| |_        | j        j        |j        _         |S )z
        Encode an :class:`.AudioFrame` and return a list of :class:`.Packet`.

        :rtype: list[Packet]

        .. seealso:: This is mostly a passthrough to :meth:`.CodecContext.encode`.
        )r   encode_streamptrr   stream_index)r   r   packetspackets       r   r   zAudioStream.encode   sF     $++E22 	5 	5F!FN&*hnFJ##r   r"   c                 6    | j                             |          S )z
        Decode a :class:`.Packet` and return a list of :class:`.AudioFrame`.

        :rtype: list[AudioFrame]

        .. seealso:: This is a passthrough to :meth:`.CodecContext.decode`.
        )r   decode)r   r"   s     r   r$   zAudioStream.decode$   s     !((000r   r   )__name__
__module____qualname__r   r   cythonccallr   r   r   r$    r   r   r   r      s        
 
 
1 1 1 \ J-    \" \	1 	1Vd] 	1 	1 	1 \	1 	1 	1r   r   )r(   cython.cimports.av.audio.framer   cython.cimports.av.packetr   cclassStreamr   r*   r   r   <module>r/      st     5 5 5 5 5 5 , , , , , , '1 '1 '1 '1 '1& '1 '1 '1 '1 '1r   