SpiceClientGLib.Audio¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|
||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class SpiceClientGLib.Audio(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
SpiceClientGLib.Audio
struct is opaque and should not be accessed directly.- classmethod get(session, context)¶
- Parameters:
session (
SpiceClientGLib.Session
) – theSpiceClientGLib.Session
to connect tocontext (
GLib.MainContext
orNone
) – aGLib.MainContext
to attach to (orNone
for default).
- Returns:
a weak reference to a
SpiceClientGLib.Audio
instance orNone
if failed.- Return type:
Gets the
SpiceClientGLib.Audio
associated with the passed inSpiceClientGLib.Session
. A newSpiceClientGLib.Audio
instance will be created the first time this function is called for a certainSpiceClientGLib.Session
.Note that this function returns a weak reference, which should not be used after the
SpiceClientGLib.Session
itself has been unref-ed by the caller.
- classmethod new(session, context, name)¶
- Parameters:
session (
SpiceClientGLib.Session
) – theSpiceClientGLib.Session
to connect tocontext (
GLib.MainContext
orNone
) – aGLib.MainContext
to attach to (orNone
for default).name (
str
orNone
) – a name for the audio channels (orNone
for application name).
- Returns:
a new
SpiceClientGLib.Audio
instance orNone
if no backend or failed.- Return type:
Once instantiated,
SpiceClientGLib.Audio
will handle the playback and record channels to stream to your local audio system.Deprecated since version 0.8: Use
SpiceClientGLib.Audio.get
() instead
- do_connect_channel(channel) virtual¶
- Parameters:
channel (
SpiceClientGLib.Channel
) –- Return type:
- do_get_playback_volume_info_async(cancellable, main_channel, callback, *user_data) virtual¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –main_channel (
SpiceClientGLib.MainChannel
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- do_get_playback_volume_info_finish(res, mute, nchannels, volume) virtual¶
- Parameters:
res (
Gio.AsyncResult
) –mute (
bool
) –nchannels (
int
) –volume (
int
) –
- Return type:
- do_get_record_volume_info_async(cancellable, main_channel, callback, *user_data) virtual¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) –main_channel (
SpiceClientGLib.MainChannel
) –callback (
Gio.AsyncReadyCallback
orNone
) –
Property Details¶
- SpiceClientGLib.Audio.props.main_context¶
- Name:
main-context
- Type:
- Default Value:
- Flags:
GLib.MainContext
to use for the event source
- SpiceClientGLib.Audio.props.session¶
- Name:
session
- Type:
- Default Value:
- Flags:
SpiceClientGLib.Session
thisSpiceClientGLib.Audio
is associated with