
    h                     r    S SK r S SKJrJrJrJr  S SKrS SKJr  SSK	J
r
  SSKJr  SSKJr   " S S	\5      rg)
    N)BinaryIOOptionalTupleUnion)CodecConfig   )soundfile_backend)Backend)AudioMetaDatac                      \ rS rSr\SS\\\\R                  4   S\
\   S\S\4S jj5       r\      SS\\\\R                  4   S\S	\S
\S\S\
\   S\S\\R"                  \4   4S jj5       r\      SS\\\\R                  4   S\R"                  S\S\S\
\   S\
\   S\
\   S\S\
\\\\4      SS4S jj5       r\S\4S j5       r\S\4S j5       rSrg)SoundfileBackend   uriformatbuffer_sizereturnc                 .    [         R                  " X5      $ N)r	   info)r   r   r   s      U/var/www/auris/envauris/lib/python3.13/site-packages/torchaudio/_backend/soundfile.pyr   SoundfileBackend.info   s     %%c22    Nframe_offset
num_frames	normalizechannels_firstc                 2    [         R                  " XX#XE5      $ r   )r	   load)r   r   r   r   r   r   r   s          r   r   SoundfileBackend.load   s     !%%cP^ggr   srcsample_rateencodingbits_per_samplecompressionc	           
      V    U(       a  [        S5      e[        R                  " XX#XEUS9  g )Nz:soundfile backend does not support argument `compression`.)r   r"   r#   )
ValueErrorr	   save)	r   r    r!   r   r   r"   r#   r   r$   s	            r   r'   SoundfileBackend.save   s+     YZZk&et	
r   c                     gNT r   r   s     r   
can_decodeSoundfileBackend.can_decode0       r   c                     gr*   r+   r,   s     r   
can_encodeSoundfileBackend.can_encode4   r/   r   r+   )   )r   TTNr3   )TNNNr3   N)__name__
__module____qualname____firstlineno__staticmethodr   r   strosPathLiker   intr   r   boolr   torchTensorr   r   floatr'   r-   r1   __static_attributes__r+   r   r   r   r      s   3%#r{{23 3Xc] 3Y\ 3hu 3 3  # $	h8S"++-.	h	h 	h 		h
 	h 	h 	h 
u||S 	!	h 	h 
  $ $"&)-@D
8S"++-.
\\
 
 	

 
 3-
 "#
 
 eK$;<=
 

 
$ 4   4  r   r   )r;   typingr   r   r   r   r?   torchaudio.ior    r	   backendr
   commonr   r   r+   r   r   <module>rH      s)    	 3 3  %   !*w *r   