+
    ¨úÎj)  ã                   óv   € ^ RI t ^ RIHt ^ RIHt ] P
                  ] P                   ! R R4      4       4       tR# )é    N)Úalloc_audio_frame)Ú	err_checkc                   ó  a € ] tR t^t o RtR tR t]P                  V 3R lR l4       t	]P                  RV 3R lR ll4       t
]P                  RV 3R lR	 ll4       t]R
 4       t]R 4       t]R 4       t]R 4       tRtV tR# )Ú	AudioFifoz7A simple audio sample FIFO (First In First Out) buffer.c                ó0  €  R V P                   P                   RV P                   RV P                   RV P                   RV P
                   R\        V 4      R R2pV#   \         d,    R T P                   P                   R\        T 4      R R2p T# i ; i)z<av.Ú z samples of zhz z at 0xÚxÚ>z, uninitialized, use fifo.write(frame), at 0x)Ú	__class__Ú__name__ÚsamplesÚsample_rateÚlayoutÚformatÚidÚAttributeError)ÚselfÚresults   & ÚG/opt/data/cache/scratch/pip-target-_o6w5emm/lib/python/av/audio/fifo.pyÚ__repr__ÚAudioFifo.__repr__   s­   € ð		à�t—~‘~×.Ñ.Ð/¨q°·±°¸lØ×#Ñ#Ð$ C¨¯© }°A°d·k±k°]À&ÌÈDËÐRSÈÐTUðWð ð ˆøô ô 	à�t—~‘~×.Ñ.Ð/ð 0Ü˜D› !˜ Að'ñ ð ˆð	ús   ‚AA Á2BÂBc                ól   € V P                   '       d"   \        P                  V P                   4       R # R # )N)ÚptrÚlibÚav_audio_fifo_free©r   s   &r   Ú__dealloc__ÚAudioFifo.__dealloc__   s"   € Ø�8�8ˆ8Ü×"Ñ" 4§8¡8Ö,ñ ó    c                ó.   <€ V ^8„  d   QhRS[ R,          /# )é   ÚframeN)Ú
AudioFrame)r   Ú__classdict__s   "€r   Ú__annotate__ÚAudioFifo.__annotate__   s   ø€ ÷ Q5ñ Q5™:¨Õ,ñ Q5r   c           	     ó	  € Vf   \        R4      hVP                  P                  '       g   R# V P                  '       Eg’   \        4       V n        V P                  P                  V4       V P                  P                  4        VP                  P                  '       dŠ   VP                  P                  '       dn   VP                  P                  \        VP                  P                  4      ,          V n        V ;P                  VP                  P                  ,          un        M^ V n        \        P                  \        P                   ! \        P"                  VP                  P$                  4      VP&                  P(                  VP                  P                  ^,          4      V n        V P                  '       g   \+        R4      hEM1VP                  P$                  V P                  P                  P$                  8w  gî   VP                  P                  V P                  P                  P                  8w  gµ   VP                  P                  '       d¤   V P                  P                  P                  '       d~   VP                  P                  V P                  P                  P                  8w  g:   VP                  P                  V P                  P                  P                  8w  d   \-        R4      h\        P.                  ! \0        4      pV P                  '       d¡   VP                  P2                  \        P4                  8w  dx   \        P                   ! \0        V P                  V P6                  ,          4      pVP                  P2                  V8w  d'   \-        RVP                  P2                   RV R24      h\9        \        P;                  V P                  \        P                   ! \        P<                  \        P>                  ,          VP                  P@                  4      VP                  P                  4      4       V ;P6                  VP                  P                  ,          un        R# )a‡  write(frame)

Push a frame of samples into the queue.

:param AudioFrame frame: The frame of samples to push.

The FIFO will remember the attributes from the first frame, and use those
to populate all output frames.

If there is a :attr:`~.Frame.pts` and :attr:`~.Frame.time_base` and
:attr:`~.AudioFrame.sample_rate`, then the FIFO will assert that the incoming
timestamps are continuous.

Nz&AudioFifo must be given an AudioFrame.zCould not allocate AVAudioFifo.z*Frame does not match AudioFifo parameters.zFrame.pts (z) != expected (z); fix or set to None.)!Ú	TypeErrorr   Ú
nb_samplesr   ÚtemplateÚ_copy_internal_attributesÚ_init_user_attributesÚ
_time_baseÚnumr   ÚdenÚfloatÚpts_per_sampler   Úav_audio_fifo_allocÚcythonÚcastÚAVSampleFormatr   r   Únb_channelsÚRuntimeErrorÚ
ValueErrorÚdeclareÚint64_tÚptsÚAV_NOPTS_VALUEÚsamples_writtenr   Úav_audio_fifo_writeÚpointerÚp_voidÚextended_data)r   r"   Úexpected_ptss   && r   ÚwriteÚAudioFifo.write   s  € ð" Š=ÜÐDÓEÐEà�y‰y×#×#Ð#Ùà�x�x‰xô .Ó/ˆDŒMØ�M‰M×3Ñ3°EÔ:Ø�M‰M×/Ñ/Ô1ð ×Ñ×#×#Ð#¨¯	©	×(=×(=Ð(=Ø&+×&6Ñ&6×&:Ñ&:¼UÀ5×CSÑCS×CWÑCWÓ=XÕ&X�Ô#Ø×#Ò# u§y¡y×'<Ñ'<Õ<Ö#à&'�Ô#ä×.Ñ.Ü—’œC×.Ñ.°·	±	×0@Ñ0@ÓAØ—‘×(Ñ(Ø—	‘	×$Ñ$ØõóˆDŒHð —8—8�8Ü"Ð#DÓEÐEñ ð
 �I‰I×Ñ §¡× 1Ñ 1× 8Ñ 8Ô8Ø�y‰y×$Ñ$¨¯©×(9Ñ(9×(EÑ(EÔEà× Ñ ×$×$Ð$Ø—M‘M×,Ñ,×0×0Ð0à×$Ñ$×(Ñ(¨D¯M©M×,DÑ,D×,HÑ,HÔHØ×'Ñ'×+Ñ+¨t¯}©}×/GÑ/G×/KÑ/KÔKô ÐIÓJÐJô —~’~¤gÓ.ˆØ××Ð 5§9¡9§=¡=´C×4FÑ4FÔ#FÜ!Ÿ;š;Ü˜×,Ñ,¨t×/CÑ/CÕCóˆLð �y‰y�}‰} Ô,Ü Ø! %§)¡)§-¡- °À¸~ð N*ð *óð ô
 	Ü×#Ñ#Ø—‘Ü—’œFŸN™N¬6¯=©=Õ9¸5¿9¹9×;RÑ;RÓSØ—	‘	×$Ñ$óô	
ð 	×Ò §	¡	× 4Ñ 4Õ4×r   c                óN   <€ V ^8„  d   QhRS[ P                  RS[ P                  /# ©r!   r   Úpartial©r3   ÚintÚbint)r   r$   s   "€r   r%   r&   q   s#   ø€ ÷ 7ñ 7™FŸJ™Jð 7±V·[±[ñ 7r   c           	     ó>  € V P                   '       g   R# \        P                  V P                   4      pV^8  d   R# T;'       g    TpW18  d   V'       d   TpMR# \        4       pVP	                  V P
                  4       VP                  \        P                  ! \        P                  V P
                  P                   P                  4      \        P                  ! \        P                  V P
                  P                   P                  4      V^4       \        \        P                  V P                   \        P                  ! \        P                  \        P                   ,          VP                   P"                  4      V4      4       V P$                  '       dG   \        P                  ! \&        V P$                  V P(                  ,          4      VP                   n        M\        P,                  VP                   n        V ;P(                  V,          un        V# )aš  read(samples=0, partial=False)

Read samples from the queue.

:param int samples: The number of samples to pull; 0 gets all.
:param bool partial: Allow returning less than requested.
:returns: New :class:`AudioFrame` or ``None`` (if empty).

If the incoming frames had valid a :attr:`~.Frame.time_base`,
:attr:`~.AudioFrame.sample_rate` and :attr:`~.Frame.pts`, the returned frames
will have accurate timing.

N)r   r   Úav_audio_fifo_sizer   r+   r*   Ú_initr3   r4   r5   r   ÚAVChannelLayoutÚ	ch_layoutr   Úav_audio_fifo_readr?   r@   rA   r1   Úuint64_tÚsamples_readr;   r<   )r   r   rG   Úbuffered_samplesr"   s   &&&  r   ÚreadÚAudioFifo.readp   sk  € ð  �x�xˆxÙä'*×'=Ñ'=¸d¿h¹hÓ'GÐØ˜aÔÙà×-Ð-Ð-ˆàÔ%ßØ*‘áä-Ó/ˆØ×'Ñ'¨¯©Ô6Ø�‰Ü�KŠKœ×*Ñ*¨D¯M©M×,=Ñ,=×,DÑ,DÓEÜ�KŠKœ×+Ñ+¨T¯]©]×->Ñ->×-HÑ-HÓIØØô		
ô 	Ü×"Ñ"Ø—‘Ü—’œFŸN™N¬6¯=©=Õ9¸5¿9¹9×;RÑ;RÓSØóô	
ð ××ÐÜ"ŸKšKÜ˜$×-Ñ-°×0AÑ0AÕAóˆE�I‰I�Mô  ×.Ñ.ˆE�I‰IŒMà×Ò˜WÕ$ÕØˆr   c                óN   <€ V ^8„  d   QhRS[ P                  RS[ P                  /# rF   rH   )r   r$   s   "€r   r%   r&   «   s#   ø€ ÷ ñ ¡§¡ð ±f·k±kñ r   c                ó`   € . p V P                  WR7      pVe   VP                  V4       K*   V# )zßread_many(samples, partial=False)

Read as many frames as we can.

:param int samples: How large for the frames to be.
:param bool partial: If we should return a partial frame.
:returns: A ``list`` of :class:`AudioFrame`.

)rG   )rT   Úappend)r   r   rG   Úframesr"   s   &&&  r   Ú	read_manyÚAudioFifo.read_manyª   s6   € ð $&ˆØØ—I‘I˜g�IÓ7ˆEØÒ Ø—‘˜eÖ$ààˆr   c                óx   € V P                   '       g   \        R\         R24      hV P                  P                  # )z'The :class:`.AudioFormat` of this FIFO.Ú'z,.AudioFifo' object has no attribute 'format')r   r   r   r*   r   r   s   &r   r   ÚAudioFifo.formatÁ   ó9   € ð �x�xˆxÜ Ø”H�:ÐIÐJóð ð �}‰}×#Ñ#Ð#r   c                óx   € V P                   '       g   \        R\         R24      hV P                  P                  # )z'The :class:`.AudioLayout` of this FIFO.r]   z,.AudioFifo' object has no attribute 'layout')r   r   r   r*   r   r   s   &r   r   ÚAudioFifo.layoutÊ   r_   r   c                óx   € V P                   '       g   \        R \         R24      hV P                  P                  # )r]   z1.AudioFifo' object has no attribute 'sample_rate')r   r   r   r*   r   r   s   &r   r   ÚAudioFifo.sample_rateÓ   s7   € à�x�xˆxÜ Ø”H�:ÐNÐOóð ð �}‰}×(Ñ(Ð(r   c                óh   € V P                   '       d    \        P                  V P                   4      # ^ # )z4Number of audio samples (per channel) in the buffer.)r   r   rL   r   s   &r   r   ÚAudioFifo.samplesÛ   s&   € ð 48·8·8°8Œs×%Ñ% d§h¡hÓ/ÐBÀÐBr   )r   r1   r*   N)r   F)F)r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r3   ÚccallrC   rT   rZ   Úpropertyr   r   r   r   Ú__static_attributes__Ú__classdictcell__)r$   s   @r   r   r      s½   ø‡ € ñ Bòò-ð ‡\�\÷Q5ó ðQ5ðf ‡\�\÷7ñ 7ó ð7ðr ‡\�\÷ñ ó ðð, ñ$ó ð$ð ñ$ó ð$ð ñ)ó ð)ð ñCó öCr   r   )r3   Úcython.cimports.av.audio.framer   Úcython.cimports.av.errorr   ÚfinalÚcclassr   © r   r   Ú<module>rs      s=   ðÛ Ý <Ý .ð ‡�Ø‡�÷VCð VCó ó òVCr   