| Spice-GTK Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <spice-audio.h>
SpiceAudio;
SpiceAudioClass;
SpiceAudio* spice_audio_new (SpiceSession *session,
GMainContext *context,
const char *name);
"main-context" GMainContext* : Read / Write / Construct Only "session" SpiceSession* : Read / Write / Construct Only
A class that handles the playback and record channels for your application, and connect them to the default sound system.
typedef struct _SpiceAudio SpiceAudio;
The SpiceAudio struct is opaque and should not be accessed directly.
typedef struct {
GObjectClass parent_class;
} SpiceAudioClass;
Class structure for SpiceAudio.
GObjectClass |
Parent class. |
SpiceAudio* spice_audio_new (SpiceSession *session,GMainContext *context,const char *name);
spice_audio_new has been deprecated since version 0.8 and should not be used in newly-written code. Use spice_audio_get() instead
Once instantiated, SpiceAudio will handle the playback and record channels to stream to your local audio system.
|
the SpiceSession to connect to |
|
a GMainContext to attach to (or NULL for default).
|
|
a name for the audio channels (or NULL for application name).
|
Returns : |
a new SpiceAudio instance or NULL if no backend or failed.
|
"main-context" property"main-context" GMainContext* : Read / Write / Construct Only
GMainContext to use for the event source.
"session" property"session" SpiceSession* : Read / Write / Construct Only
SpiceSession this SpiceAudio is associated with