/
PlayerMP3.inl
executable file
·60 lines (46 loc) · 1.97 KB
/
PlayerMP3.inl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**********************************************************************************************************************/
/* MP3 PLAYER */
/* 14/12/00, M : creation of the file */
/* uses DirectShow (DX7) */
/**********************************************************************************************************************/
#ifndef _PLAYERMP3_INL_
#define _PLAYERMP3_INL_
/**********************************************************************************************************************/
/* STATE */
/**********************************************************************************************************************/
inline bool CPlayerMP3::boCanPlay() const
{
return((m_dwState == _STOPPED_) || (m_dwState == _PAUSED_));
}
inline bool CPlayerMP3::boCanStop() const
{
return((m_dwState == _PLAYING_) || (m_dwState == _PAUSED_));
}
inline bool CPlayerMP3::boCanPause() const
{
return((m_dwState == _PLAYING_) || (m_dwState == _STOPPED_));
}
//
inline bool CPlayerMP3::boIsInitialized() const
{
return (m_dwState != _UNINITIALIZED_);
}
inline bool CPlayerMP3::boIsStopped() const
{
return (m_dwState == _STOPPED_);
}
inline bool CPlayerMP3::boIsPaused() const
{
return (m_dwState == _PAUSED_);
}
inline bool CPlayerMP3::boIsPlaying() const
{
return (m_dwState == _PLAYING_);
}
//
inline const TCHAR* CPlayerMP3::lpszGetFile() const
{
return m_strFile.c_str();
}
/**********************************************************************************************************************/
#endif