mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
oh no
This commit is contained in:
parent
e2f3a89513
commit
50bdbb784a
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ void _pcSpeakerThread(void* inst) {
|
|||
|
||||
void DivPlatformPCSpeaker::pcSpeakerThread() {
|
||||
std::unique_lock<std::mutex> unique(realOutSelfLock);
|
||||
#ifdef __linux__
|
||||
int lastDelay=0;
|
||||
#endif
|
||||
RealQueueVal r(0,0);
|
||||
printf("starting\n");
|
||||
while (!realOutQuit) {
|
||||
|
@ -179,7 +181,7 @@ void DivPlatformPCSpeaker::acquire_piezo(short* bufL, short* bufR, size_t start,
|
|||
|
||||
void DivPlatformPCSpeaker::beepFreq(int freq, int delay) {
|
||||
realQueueLock.lock();
|
||||
realQueue.push(RealQueueVal(freq,delay));
|
||||
realQueue.push(RealQueueVal(delay,freq));
|
||||
realQueueLock.unlock();
|
||||
realOutCond.notify_one();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue