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.Audiostruct is opaque and should not be accessed directly.- classmethod get(session, context)¶
- Parameters:
session (
SpiceClientGLib.Session) – theSpiceClientGLib.Sessionto connect tocontext (
GLib.MainContextorNone) – aGLib.MainContextto attach to (orNonefor default).
- Returns:
a weak reference to a
SpiceClientGLib.Audioinstance orNoneif failed.- Return type:
Gets the
SpiceClientGLib.Audioassociated with the passed inSpiceClientGLib.Session. A newSpiceClientGLib.Audioinstance 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.Sessionitself has been unref-ed by the caller.
- classmethod new(session, context, name)¶
- Parameters:
session (
SpiceClientGLib.Session) – theSpiceClientGLib.Sessionto connect tocontext (
GLib.MainContextorNone) – aGLib.MainContextto attach to (orNonefor default).name (
strorNone) – a name for the audio channels (orNonefor application name).
- Returns:
a new
SpiceClientGLib.Audioinstance orNoneif no backend or failed.- Return type:
Once instantiated,
SpiceClientGLib.Audiowill 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.CancellableorNone) –main_channel (
SpiceClientGLib.MainChannel) –callback (
Gio.AsyncReadyCallbackorNone) –
- 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.CancellableorNone) –main_channel (
SpiceClientGLib.MainChannel) –callback (
Gio.AsyncReadyCallbackorNone) –
Property Details¶
- SpiceClientGLib.Audio.props.main_context¶
- Name:
main-context- Type:
- Default Value:
- Flags:
GLib.MainContextto use for the event source
- SpiceClientGLib.Audio.props.session¶
- Name:
session- Type:
- Default Value:
- Flags:
SpiceClientGLib.SessionthisSpiceClientGLib.Audiois associated with