-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
174 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
from libc.stdint cimport uint64_t | ||
cimport libav as lib | ||
|
||
|
||
cdef class AudioLayout: | ||
|
||
# The layout for FFMpeg; this is essentially a bitmask of channels. | ||
cdef uint64_t layout | ||
cdef lib.AVChannelLayout layout | ||
cdef int nb_channels | ||
cdef _init(self, lib.AVChannelLayout layout) | ||
|
||
cdef readonly tuple channels | ||
""" | ||
A tuple of :class:`AudioChannel` objects. | ||
:type: tuple | ||
""" | ||
|
||
cdef _init(self, uint64_t layout) | ||
|
||
|
||
cdef class AudioChannel: | ||
|
||
# The channel for FFmpeg. | ||
cdef uint64_t channel | ||
|
||
|
||
cdef AudioLayout get_audio_layout(int channels, uint64_t c_layout) | ||
cdef AudioLayout get_audio_layout(int channels, lib.AVChannelLayout c_layout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
channel_descriptions: dict[str, str] | ||
|
||
class AudioLayout: | ||
name: str | ||
layout: int | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.