void CSndserv::play(const gchar *filename) { #ifdef G_OS_WIN32 #else if (fd>=0) esd_play_file(NULL,filename,0); // ??? //esd_play_file ("reciteword", filename, 1); #endif }
static gpointer ggadu_play_file(gpointer filename) { static GStaticMutex play_mutex = G_STATIC_MUTEX_INIT; gchar *filename_native = NULL; gsize r,w; g_static_mutex_lock(&play_mutex); filename_native = g_filename_from_utf8(filename,-1,&r,&w,NULL); if (!esd_play_file(g_get_prgname(), filename_native, TRUE)) { signal_emit_from_thread(GGadu_PLUGIN_NAME, "gui show message", g_strdup(_("ESD plugin: Error while playing file")), "main-gui"); } g_free(filename_native); g_static_mutex_unlock(&play_mutex); return NULL; }
static int play_file (const char *filename) { esd_play_file( program_name, filename, 1 ); return 0; }
int esd_play_sound_file (Extbyte *file, int UNUSED (vol)) { /* #### FIXME: vol is ignored */ return esd_play_file(ESD_NAME, file, 0); }