SpiceClientGLib.RecordChannel

g GObject.Object GObject.Object SpiceClientGLib.Channel SpiceClientGLib.Channel GObject.Object->SpiceClientGLib.Channel SpiceClientGLib.RecordChannel SpiceClientGLib.RecordChannel SpiceClientGLib.Channel->SpiceClientGLib.RecordChannel

Subclasses:

None

Methods

Inherited:

SpiceClientGLib.Channel (13), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

send_data (data, bytes, time)

Virtual Methods

Inherited:

SpiceClientGLib.Channel (8), GObject.Object (7)

do_record_data (data, size)

do_record_start (format, channels, freq)

do_record_stop ()

Properties

Inherited:

SpiceClientGLib.Channel (5)

Name

Type

Flags

Short Description

mute

bool

r/w

Mute

nchannels

int

r/w

Number of Channels

volume

int

r/w

Record volume

Signals

Inherited:

SpiceClientGLib.Channel (2), GObject.Object (1)

Name

Short Description

record-start

Notify when the recording should start, and provide audio format characteristics.

record-stop

Notify when the recording should stop.

Fields

Inherited:

SpiceClientGLib.Channel (2), GObject.Object (1)

Name

Type

Access

Description

parent

SpiceClientGLib.Channel

r

Class Details

class SpiceClientGLib.RecordChannel(**kwargs)
Bases:

SpiceClientGLib.Channel

Abstract:

No

Structure:

SpiceClientGLib.RecordChannelClass

The SpiceClientGLib.RecordChannel struct is opaque and should not be accessed directly.

send_data(data, bytes, time)
Parameters:
  • data (object or None) – PCM data

  • bytes (int) – size of data

  • time (int) – stream timestamp

Send recorded PCM data to the guest.

New in version 0.35.

do_record_data(data, size) virtual
Parameters:
do_record_start(format, channels, freq) virtual
Parameters:
  • format (int) –

  • channels (int) –

  • freq (int) –

do_record_stop() virtual

Signal Details

SpiceClientGLib.RecordChannel.signals.record_start(record_channel, format, channels, rate)
Signal Name:

record-start

Flags:

RUN_FIRST

Parameters:

Notify when the recording should start, and provide audio format characteristics.

SpiceClientGLib.RecordChannel.signals.record_stop(record_channel)
Signal Name:

record-stop

Flags:

RUN_FIRST

Parameters:

record_channel (SpiceClientGLib.RecordChannel) – The object which received the signal

Notify when the recording should stop.

Property Details

SpiceClientGLib.RecordChannel.props.mute
Name:

mute

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Mute

SpiceClientGLib.RecordChannel.props.nchannels
Name:

nchannels

Type:

int

Default Value:

2

Flags:

READABLE, WRITABLE

Number of Channels

SpiceClientGLib.RecordChannel.props.volume
Name:

volume

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE

Record volume