summaryrefslogtreecommitdiffstats
path: root/src/audio/audio.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2017-04-18 22:15:34 +0200
committerGitHub <noreply@github.com>2017-04-18 22:15:34 +0200
commitb1bd88ef5355ea1b8edbf777215bb44fce36f32a (patch)
tree665b0df5b26f55cf845723a4b1629937ed1fa422 /src/audio/audio.vala
parent529d6dd34f9209efef18c04121075be9ac310c9c (diff)
parentcee8d7e8684ec03240e95f8443e4f5cbc04bec5a (diff)
downloadserial-barcode-scanner-b1bd88ef5355ea1b8edbf777215bb44fce36f32a.tar.bz2
Merge pull request #24 from smilix/customizable_user_sounds
Customizable user sounds
Diffstat (limited to 'src/audio/audio.vala')
-rw-r--r--src/audio/audio.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/audio.vala b/src/audio/audio.vala
index a6e5007..1404969 100644
--- a/src/audio/audio.vala
+++ b/src/audio/audio.vala
@@ -74,6 +74,10 @@ public class AudioPlayerImplementation {
return get_random_file(path + "user/");
}
+ public string[] get_user_themes() {
+ return get_files(path + "user/");
+ }
+
public void play_user(string theme, string type) {
p.set_state(Gst.State.NULL);
var file = get_random_file(path + "user/" + theme+ "/" + type);