cutcutcodec.core.classes.stream.StreamWrapper

class cutcutcodec.core.classes.stream.StreamWrapper(node, index: Integral)[source]

Allow to dynamically transfer the methods of an instanced stream.

Attribute

streamcutcutcodec.core.classes.stream.Stream

The stream containing the properties to be transferred (readonly). This stream is one of the input streams of the parent node.

Initialise and create the class.

Parameters

nodecutcutcodec.core.classes.node.Node

The parent node, transmitted to cutcutcodec.core.classes.stream.Stream.

indexnumber.Integral

The index of the stream among all the input streams of the node. 0 for the first, 1 for the second …

property beginning: Fraction

Return the stream beginning instant in second.

property duration: Fraction | float

Return the duration of the flow in seconds, positive fraction or infinite.

property index: int

Return the stream index from the parent node (0 to n-1).

property is_time_continuous: bool

Return True if the data is continuous in the time domain, False if it is discrete.

property stream: Stream

Return the audio stream containing the properties to be transferred.

property type: str

Implement cutcutcodec.core.classes.stream.Stream.type.