📄 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.7 2000/05/04 11:30:36 robert Exp $
____________________________________________________________________________*/
#ifndef INCLUDED_CDPMO_H_
#define INCLUDED_CDPMO_H_
/* 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"
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);
struct disc_info *GetDiscInfo();
uint32 GetCDDBDiscID();
char *GetcdindexDiscID();
void Eject(void);
private:
void WorkerThread(void);
virtual Error Reset(bool user_stop);
void HandleTimeInfoEvent(PMOTimeInfoEvent *pEvent);
bool m_properlyInitialized;
Thread *m_pBufferThread;
int m_cdDesc;
int m_track;
bool sentData;
bool trackDone;
uint32 cddbid;
string cdindexid;
struct disc_info dinfo;
};
#endif /* _SOUNDCARDPMO_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -