project64/Source/Project64-core/N64System/Mips/Audio.h

33 lines
728 B
C
Raw Normal View History

2012-12-19 09:30:18 +00:00
#pragma once
class CAudio
2015-11-15 00:31:56 +00:00
{
enum
{
ai_full = 0x80000000,
ai_busy = 0x40000000,
};
public:
2015-11-15 00:31:56 +00:00
CAudio();
~CAudio();
uint32_t GetLength ();
uint32_t GetStatus ();
void LenChanged ();
2015-11-15 00:31:56 +00:00
void InterruptTimerDone();
void BusyTimerDone ();
void Reset ();
void SetViIntr ( uint32_t VI_INTR_TIME );
void SetFrequency ( uint32_t Dacrate, uint32_t System );
private:
CAudio(const CAudio&);
CAudio& operator=(const CAudio&);
uint32_t m_SecondBuff;
uint32_t m_Status;
uint32_t m_BytesPerSecond;
int32_t m_CountsPerByte;
int32_t m_FramesPerSecond;
};