-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDspRegFIFO.h
43 lines (35 loc) · 992 Bytes
/
DspRegFIFO.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// DspRegFIFO.h
// gimicUsbSpcPlay
//
// Created by osoumen on 2014/10/26.
// Copyright (c) 2014年 osoumen. All rights reserved.
//
#ifndef __gimicUsbSpcPlay__DspRegFIFO__
#define __gimicUsbSpcPlay__DspRegFIFO__
#include <iostream>
#include <list>
#include "C700TimeThread.h"
class DspRegFIFO {
public:
typedef struct {
long time;
bool isRam;
unsigned short addr;
unsigned char data;
} DspWrite;
DspRegFIFO();
~DspRegFIFO();
void AddDspWrite(long time, unsigned char addr, unsigned char data);
void AddRamWrite(long time, unsigned short addr, unsigned char data);
size_t GetNumWrites() { return mDspWrite.size(); }
DspWrite PopFront();
long GetFrontTime();
void AddTime(long time);
void Clear();
MutexObject mListMtx;
std::list<DspWrite> mDspWrite;
// mListMtx
//static DspRegFIFO* GetInstance();
};
#endif /* defined(__gimicUsbSpcPlay__DspRegFIFO__) */