PC Speaker: timing improvements
This commit is contained in:
parent
50bdbb784a
commit
37539157be
2 changed files with 44 additions and 18 deletions
|
|
@ -66,10 +66,11 @@ class DivPlatformPCSpeaker: public DivDispatch {
|
|||
std::condition_variable realOutCond;
|
||||
bool realOutQuit;
|
||||
struct RealQueueVal {
|
||||
int delay;
|
||||
int tv_sec, tv_nsec;
|
||||
unsigned short val;
|
||||
RealQueueVal(int d, unsigned short v):
|
||||
delay(d),
|
||||
RealQueueVal(int sec, int nsec, unsigned short v):
|
||||
tv_sec(sec),
|
||||
tv_nsec(nsec),
|
||||
val(v) {}
|
||||
};
|
||||
std::queue<RealQueueVal> realQueue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue