Project

General

Profile

oss.h

Dmitry Vagin, October 19, 2015 21:51

 
1
--- src/oss4/oss.h.orig        2015-05-31 03:28:37.000000000 +0500
2
+++ src/oss4/oss.h        2015-10-20 00:49:16.869321000 +0500
3
@@ -27,6 +27,8 @@
4
 #include <string.h>
5
 #include <sys/ioctl.h>
6
 
7
+#include <pthread.h>
8
+
9
 #ifdef HAVE_SYS_SOUNDCARD_H
10
 #include <sys/soundcard.h>
11
 #else
12
@@ -141,6 +143,9 @@
13
 
14
     bool m_paused = false;
15
     bool m_ioctl_vol = false;
16
+
17
+    pthread_mutex_t m_mutex = PTHREAD_MUTEX_INITIALIZER;
18
+    pthread_cond_t m_cond = PTHREAD_COND_INITIALIZER;
19
 };
20
 
21
 /* utils.c */