Spaces:
Build error
Build error
File size: 729 Bytes
64772a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
cimport libav as lib
from libc.stdint cimport uint8_t, uint64_t
from av.audio.format cimport AudioFormat
from av.audio.layout cimport AudioLayout
from av.frame cimport Frame
cdef class AudioFrame(Frame):
# For raw storage of the frame's data; don't ever touch this.
cdef uint8_t *_buffer
cdef size_t _buffer_size
cdef readonly AudioLayout layout
"""
The audio channel layout.
:type: AudioLayout
"""
cdef readonly AudioFormat format
"""
The audio sample format.
:type: AudioFormat
"""
cdef _init(self, lib.AVSampleFormat format, uint64_t layout, unsigned int nb_samples, unsigned int align)
cdef _init_user_attributes(self)
cdef AudioFrame alloc_audio_frame()
|