diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-10-06 21:09:54 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-10-06 21:09:54 +0200 |
commit | d70dcb4f20d1c52add759ed4ec5ccbf7131de069 (patch) | |
tree | 64db0591701c57fa49e39cdb7a71cb22e2b46551 /src/main.vala | |
parent | 4bc20854220c7fbfb655a6ed476d12cdafce2f2d (diff) | |
download | serial-barcode-scanner-d70dcb4f20d1c52add759ed4ec5ccbf7131de069.tar.bz2 |
Add full audio support (Closes: GH-13)
Diffstat (limited to 'src/main.vala')
-rw-r--r-- | src/main.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.vala b/src/main.vala index aadafe7..7f9d3c1 100644 --- a/src/main.vala +++ b/src/main.vala @@ -62,6 +62,7 @@ public static int main(string[] args) { db = new Database("shop.db"); audio = new AudioPlayer(); loop = new MainLoop(); + localsession = new ScannerSession(); dev.received_barcode.connect((data) => { if(localsession.interpret(data)) @@ -69,7 +70,7 @@ public static int main(string[] args) { }); write_to_log("KtT Shop System has been started"); - audio.play("system/startup.ogg"); + audio.play_system("startup.ogg"); /* attach webserver to mainloop */ new WebServer(); @@ -78,7 +79,7 @@ public static int main(string[] args) { loop.run(); write_to_log("Stopping Shop System"); - audio.play("system/shutdown.ogg"); + audio.play_system("shutdown.ogg"); /* we need to run the mainloop to play audio */ audio.end_of_stream.connect(() => { loop.quit(); }); |