2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CAUDIOSYS
|
|
|
|
#define _CAUDIOSYS
|
2022-08-13 01:26:00 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
enum ETRKSampleRate {
|
|
|
|
kTSR_Zero,
|
|
|
|
kTSR_One,
|
|
|
|
// TODO
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ETRKRepeatMode {
|
|
|
|
// TODO
|
|
|
|
};
|
|
|
|
|
2022-08-13 01:26:00 +00:00
|
|
|
class CAudioSys {
|
|
|
|
public:
|
2022-10-09 05:37:23 +00:00
|
|
|
CAudioSys(uchar, uchar, uchar, uchar, uint);
|
2022-10-01 06:19:09 +00:00
|
|
|
~CAudioSys();
|
2022-09-13 04:26:54 +00:00
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
static void SysSetVolume(uchar, uint, uchar);
|
|
|
|
static void SetDefaultVolumeScale(short);
|
|
|
|
static void SetVolumeScale(short);
|
2022-09-13 04:26:54 +00:00
|
|
|
static void TrkSetSampleRate(ETRKSampleRate);
|
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
static short GetDefaultVolumeScale();
|
2022-09-13 04:26:54 +00:00
|
|
|
|
2022-10-09 05:37:23 +00:00
|
|
|
static const uchar kMaxVolume;
|
2022-08-13 01:26:00 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CAUDIOSYS
|