From f891ecc9fbe159ec8a6cf321c43217d59f8cdf02 Mon Sep 17 00:00:00 2001 From: Holger Cremer Date: Sun, 16 Apr 2017 01:34:22 +0200 Subject: adds a new feature: a user can select it's sond theme in the web interface. If not selected, a random theme is used. --- src/audio/audio.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/audio/audio.vala') 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); -- cgit v1.2.3