gnome-sound

Name

gnome-sound -- 

Synopsis


#include <libgnome/libgnome.h>


int         gnome_sound_connection_get      (void);
void        gnome_sound_init                (const char *hostname);
void        gnome_sound_shutdown            (void);
int         gnome_sound_sample_load         (const char *sample_name,
                                             const char *filename);
void        gnome_sound_play                (const char *filename);

Description

Details

gnome_sound_connection_get ()

int         gnome_sound_connection_get      (void);

Returns : the fd of our Esound connection or -1 on error


gnome_sound_init ()

void        gnome_sound_init                (const char *hostname);

Initialize esd connection

hostname : hostname where esd daemon resides.


gnome_sound_shutdown ()

void        gnome_sound_shutdown            (void);

shuts down the gnome sound support


gnome_sound_sample_load ()

int         gnome_sound_sample_load         (const char *sample_name,
                                             const char *filename);

Loads the audio on filename and XXXX

sample_name : the name of the sample
filename : the filename where the audio is stored
Returns : a sample_id, or a negative number otherwise.


gnome_sound_play ()

void        gnome_sound_play                (const char *filename);

Plays the audio stored in filename

filename : file containing the sound sample