2010-05-22 04:47:15 +00:00
|
|
|
class CAudio
|
|
|
|
{
|
2008-09-18 03:15:49 +00:00
|
|
|
public:
|
2010-05-22 04:47:15 +00:00
|
|
|
CAudio (void);
|
2010-06-14 21:14:58 +00:00
|
|
|
~CAudio (void);
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2010-06-14 21:14:58 +00:00
|
|
|
DWORD GetLength ( void );
|
|
|
|
DWORD GetStatus ( void );
|
|
|
|
void LenChanged ( void );
|
|
|
|
void TimerDone ( void );
|
|
|
|
void Reset ( void );
|
|
|
|
void SetViIntr ( DWORD VI_INTR_TIME );
|
2010-06-29 02:11:22 +00:00
|
|
|
void SetFrequency ( DWORD Dacrate, DWORD System );
|
2010-06-14 21:14:58 +00:00
|
|
|
|
|
|
|
/* void AiCallBack ( void );
|
2010-05-22 04:47:15 +00:00
|
|
|
void UpdateAudioTimer ( DWORD CountsPerFrame );
|
2010-06-14 21:14:58 +00:00
|
|
|
*/
|
2010-05-22 04:47:15 +00:00
|
|
|
private:
|
2010-06-14 21:14:58 +00:00
|
|
|
DWORD m_CurrentLength;
|
|
|
|
DWORD m_SecondBuff;
|
|
|
|
DWORD m_Status;
|
2010-06-29 02:11:22 +00:00
|
|
|
DWORD m_BytesPerSecond;
|
2010-06-30 21:35:44 +00:00
|
|
|
int m_CountsPerByte;
|
2010-06-29 02:11:22 +00:00
|
|
|
int m_FramesPerSecond;
|
2010-06-14 21:14:58 +00:00
|
|
|
|
|
|
|
/* float m_VSyncTiming;
|
2010-05-22 04:47:15 +00:00
|
|
|
double m_FramesPerSecond;
|
|
|
|
DWORD m_Length;
|
|
|
|
DWORD m_CurrentCount;
|
2010-06-14 21:14:58 +00:00
|
|
|
DWORD m_IntScheduled;*/
|
2010-05-22 04:47:15 +00:00
|
|
|
};
|