📄 cdpmo.h
字号:
/*____________________________________________________________________________
FreeAmp - The Free MP3 Player
Portions copyright (C) 1999-2000 EMusic.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: cdpmo.h,v 1.6 2000/06/10 11:07:39 ksteinbe Exp $
____________________________________________________________________________*/
#ifndef INCLUDED_CDPMO_H_
#define INCLUDED_CDPMO_H_
#include <string>
using namespace std;
/* system headers */
#include <stdlib.h>
/* project headers */
#include <config.h>
#include "thread.h"
#include "mutex.h"
#include "pmo.h"
#include "pmoevent.h"
#include "eventbuffer.h"
#include "win32volume.h"
#include "mutex.h"
static const uint32 OBUFFERSIZE = 2 * 1152;
enum
{
pmoError_MinimumError = 4000,
pmoError_DeviceOpenFailed,
pmoError_MaximumError
};
class FAContext;
class CDPMO:public PhysicalMediaOutput
{
public:
CDPMO(FAContext *context);
virtual ~CDPMO();
virtual Error Init(OutputInfo * info);
static void StartWorkerThread(void *);
virtual void GetVolume(int32 &, int32 &);
virtual void SetVolume(int32, int32);
virtual void Pause(void);
virtual void Resume(void);
virtual Error ChangePosition(int32);
virtual Error SetTo(const char *url);
virtual struct disc_info *GetDiscInfo();
virtual uint32 GetCDDBDiscID();
virtual char *GetcdindexDiscID();
private:
void WorkerThread(void);
virtual Error Reset(bool user_stop);
void HandleTimeInfoEvent(PMOTimeInfoEvent *pEvent);
bool m_properlyInitialized;
Thread *m_pBufferThread;
string m_cdDesc;
string m_thcdDesc;
int m_track;
bool sentData;
bool trackDone;
uint32 cddbid;
string cdindexid;
struct disc_info dinfo;
Win32Volume *m_volume;
HWND m_hWnd;
};
#endif /* _SOUNDCARDPMO_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -