SpiceClientGLib.PlaybackChannel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Playback min buffer size (ms) |
||
r/w |
Mute |
||
r/w |
Number of Channels |
||
r/w |
Playback volume |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Provide audio data to be played. |
|
Notify when the current playback delay is requested |
|
Notify when the playback should start, and provide audio format characteristics. |
|
Notify when the playback should stop. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class SpiceClientGLib.PlaybackChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGLib.PlaybackChannel
struct is opaque and should not be accessed directly.- set_delay(delay_ms)¶
- Parameters:
delay_ms (
int
) – the delay in ms
Adjust the multimedia time according to the delay.
- do_playback_start(format, channels, freq) virtual¶
- do_playback_stop() virtual¶
Signal Details¶
- SpiceClientGLib.PlaybackChannel.signals.playback_data(playback_channel, data, data_size)¶
- Signal Name:
playback-data
- Flags:
- Parameters:
playback_channel (
SpiceClientGLib.PlaybackChannel
) – The object which received the signaldata_size (
int
) – size in byte of data
Provide audio data to be played.
- SpiceClientGLib.PlaybackChannel.signals.playback_get_delay(playback_channel)¶
- Signal Name:
playback-get-delay
- Flags:
- Parameters:
playback_channel (
SpiceClientGLib.PlaybackChannel
) – The object which received the signal
Notify when the current playback delay is requested
- SpiceClientGLib.PlaybackChannel.signals.playback_start(playback_channel, format, channels, rate)¶
- Signal Name:
playback-start
- Flags:
- Parameters:
playback_channel (
SpiceClientGLib.PlaybackChannel
) – The object which received the signalformat (
int
) – a #SPICE_AUDIO_FMTchannels (
int
) – number of channelsrate (
int
) – audio rate
Notify when the playback should start, and provide audio format characteristics.
- SpiceClientGLib.PlaybackChannel.signals.playback_stop(playback_channel)¶
- Signal Name:
playback-stop
- Flags:
- Parameters:
playback_channel (
SpiceClientGLib.PlaybackChannel
) – The object which received the signal
Notify when the playback should stop.
Property Details¶
- SpiceClientGLib.PlaybackChannel.props.min_latency¶
-
Playback min buffer size (ms)
- SpiceClientGLib.PlaybackChannel.props.mute¶
-
Mute
- SpiceClientGLib.PlaybackChannel.props.nchannels¶
-
Number of Channels