]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/function/StopAudioFunction.java
1d58ddacd3ffc2c5379b191121538bea4c5e29c1
[GpsPrune.git] / tim / prune / function / StopAudioFunction.java
1 package tim.prune.function;
2
3 import tim.prune.App;
4 import tim.prune.FunctionLibrary;
5 import tim.prune.GenericFunction;
6
7 /**
8  * Class to stop playing the current audio file
9  */
10 public class StopAudioFunction extends GenericFunction
11 {
12         /**
13          * Constructor
14          * @param inApp app object
15          */
16         public StopAudioFunction(App inApp) {
17                 super(inApp);
18         }
19
20         /**
21          * @return name key
22          */
23         public String getNameKey() {
24                 return "function.stopaudio";
25         }
26
27         /**
28          * Perform function
29          */
30         public void begin()
31         {
32                 PlayAudioFunction playFn = (PlayAudioFunction) FunctionLibrary.FUNCTION_PLAY_AUDIO;
33                 playFn.stopClip();
34         }
35 }