ocarina: Add stop as a pipe action

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-02-09 08:03:30 -05:00
parent 234626ea81
commit 9ead002ab8
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ void perform_action(string action)
libsaria::audio::play();
else if (action == "pause")
libsaria::audio::pause();
else if (action == "stop")
libsaria::audio::stop();
else if (action == "next")
libsaria::next();
}

2
scripts/ocarina-stop Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
%%OCARINA%%-write-pipe "stop"