clean up canberra code

This commit is contained in:
TingPing 2013-04-27 20:29:28 -03:00
parent bc1169e979
commit 78f9f3f87c

View File

@ -2243,13 +2243,9 @@ sound_play (const char *file, gboolean quiet)
#ifdef USE_LIBCANBERRA
ca_context_create (&con);
/* TODO: Volume setting? */
if (ca_context_play (con, 0,
CA_PROP_MEDIA_FILENAME, wavfile, NULL) == 0)
{
g_free (wavfile);
return;
}
if (ca_context_play (con, 0, CA_PROP_MEDIA_FILENAME, wavfile, NULL) != 0)
#endif
{
cmd = g_find_program_in_path ("play");
if (cmd)
@ -2259,6 +2255,7 @@ sound_play (const char *file, gboolean quiet)
g_free (buf);
g_free (cmd);
}
}
#endif
}
else