cutcutcodec.core.classes.stream_audio
Defines the structure of an abstract audio stream.
Classes
|
Representation of any audio stream. |
|
Allow to dynamically transfer the methods of an instanced audio stream. |
Details
- class cutcutcodec.core.classes.stream_audio.StreamAudio(node)[source]
Representation of any audio stream.
Attributes
- layoutcutcutcodec.core.classes.layout.Layout
The signification of each channels (readonly). The number of channels is
len(self.layout).
Initialise and create the class.
Parameters
- nodecutcutcodec.core.classes.node.Node
The node where this stream comes from. The audit must be conducted in the children’s classes. It is not done here in order to avoid cyclic imports.
- node_maincutcutcodec.core.classes.node.Node
In the case this streams comes from
cutcutcodec.core.filter.meta_filter.MetaFilter, node_main is the meta filter while node is the subgraph of the meta-filter.
- class cutcutcodec.core.classes.stream_audio.StreamAudioWrapper(node: Filter, index: Integral)[source]
Allow to dynamically transfer the methods of an instanced audio stream.
This can be very useful for implementing filters.
Initialise and create the class.
Parameters
- nodecutcutcodec.core.classes.filter.Filter
The parent node, transmitted to
cutcutcodec.core.classes.stream.Stream.- indexnumber.Integral
The index of the audio stream among all the input streams of the
node. 0 for the first, 1 for the second …