TDME2  1.9.200
PlayableSoundView.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
7 
8 using std::string;
9 
10 /**
11  * Playable sound view interface, which represents a view that supports playing sounds additionally
12  * @author Andreas Drewke
13  */
15 {
16  /**
17  * Destructor
18  */
19  virtual ~PlayableSoundView() {}
20 
21  /**
22  * Play sound
23  * @param soundId sound id
24  */
25  virtual void playSound(const string& soundId) = 0;
26 
27  /**
28  * Stop sound
29  */
30  virtual void stopSound() = 0;
31 
32 };
Playable sound view interface, which represents a view that supports playing sounds additionally.
virtual void playSound(const string &soundId)=0
Play sound.