Spice Audio

Spice Audio — a helper to play and to record audio channels

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <spice-audio.h>

                    SpiceAudio;
                    SpiceAudioClass;
SpiceAudio *        spice_audio_new                     (SpiceSession *session,
                                                         GMainContext *context,
                                                         const char *name);

Object Hierarchy

  GObject
   +----SpiceAudio

Description

A class that handles the playback and record channels for your application, and connect them to the default sound system.

Details

SpiceAudio

typedef struct _SpiceAudio SpiceAudio;

SpiceAudioClass

typedef struct {
    GObjectClass parent_class;
} SpiceAudioClass;

spice_audio_new ()

SpiceAudio *        spice_audio_new                     (SpiceSession *session,
                                                         GMainContext *context,
                                                         const char *name);

Once instantiated, SpiceAudio will handle the playback and record channels to stream to your local audio system.

session :

the SpiceSession to connect to

context :

a GMainContext to attach to (or NULL for default).

name :

a name for the audio channels (or NULL for default).

Returns :

a new SpiceAudio instance or NULL if no backend or failed.

See Also

SpiceRecordChannel, and SpicePlaybackChannel