libsaria: Add a debugging message

Helpful for knowing what path the audio subsystem is attempting to load.
This commit is contained in:
Bryan Schumaker 2011-11-08 08:19:47 -05:00
parent 8aebd278f2
commit 11d92eef89
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include <libsaria/audio.h>
#include <libsaria/callback.h>
#include <libsaria/print.h>
#include "audio.h"
static string cur_file;
@ -53,6 +54,7 @@ namespace libsaria
{
string uri = "file://" + file;
reset();
println("Loading uri: " + uri);
cur_file = file;
g_object_set(G_OBJECT(get_player()), "uri", uri.c_str(), NULL);
trigger_callback(TRACK_LOADED);