Added methods used to access ClientSound protected data.
git-svn-id: http://voip.null.ro/svn/yate@2262 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
55e7206dcc
commit
36d0c09186
16
yatecbase.h
16
yatecbase.h
|
@ -2825,6 +2825,20 @@ public:
|
||||||
inline bool started() const
|
inline bool started() const
|
||||||
{ return m_started; }
|
{ return m_started; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the device used to play this sound
|
||||||
|
* @return The device used to play sound
|
||||||
|
*/
|
||||||
|
inline const String& device() const
|
||||||
|
{ return m_device; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the device used to play this sound
|
||||||
|
* @param dev The device used to play sound
|
||||||
|
*/
|
||||||
|
inline void device(const char* dev)
|
||||||
|
{ Lock lock(s_soundsMutex); m_device = dev; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the file played by this sound
|
* Get the file played by this sound
|
||||||
* @return The file played by this sound
|
* @return The file played by this sound
|
||||||
|
@ -2838,7 +2852,7 @@ public:
|
||||||
* @param filename The new file played by this sound
|
* @param filename The new file played by this sound
|
||||||
*/
|
*/
|
||||||
inline void file(const char* filename)
|
inline void file(const char* filename)
|
||||||
{ m_file = filename; }
|
{ Lock lock(s_soundsMutex); m_file = filename; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start playing the file
|
* Start playing the file
|
||||||
|
|
Loading…
Reference in New Issue