2012-12-19 09:30:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
2012-11-29 11:23:35 +00:00
|
|
|
class CAudio
|
2015-11-15 00:31:56 +00:00
|
|
|
{
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ai_full = 0x80000000,
|
|
|
|
ai_busy = 0x40000000,
|
|
|
|
};
|
2008-09-18 03:15:49 +00:00
|
|
|
public:
|
2015-11-15 00:31:56 +00:00
|
|
|
CAudio();
|
|
|
|
~CAudio();
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-15 00:35:38 +00:00
|
|
|
uint32_t GetLength ();
|
|
|
|
uint32_t GetStatus ();
|
|
|
|
void LenChanged ();
|
2015-11-15 00:31:56 +00:00
|
|
|
void InterruptTimerDone();
|
2015-11-15 00:35:38 +00:00
|
|
|
void BusyTimerDone ();
|
|
|
|
void Reset ();
|
|
|
|
void SetViIntr ( uint32_t VI_INTR_TIME );
|
|
|
|
void SetFrequency ( uint32_t Dacrate, uint32_t System );
|
2010-06-14 21:14:58 +00:00
|
|
|
|
2010-05-22 04:47:15 +00:00
|
|
|
private:
|
2015-11-15 00:35:38 +00:00
|
|
|
CAudio(const CAudio&); // Disable copy constructor
|
|
|
|
CAudio& operator=(const CAudio&); // Disable assignment
|
|
|
|
|
|
|
|
uint32_t m_SecondBuff;
|
|
|
|
uint32_t m_Status;
|
|
|
|
uint32_t m_BytesPerSecond;
|
|
|
|
int32_t m_CountsPerByte;
|
|
|
|
int32_t m_FramesPerSecond;
|
2010-05-22 04:47:15 +00:00
|
|
|
};
|