summaryrefslogtreecommitdiff
path: root/src/audio_encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_encoder.h')
-rw-r--r--src/audio_encoder.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/audio_encoder.h b/src/audio_encoder.h
index b15ce45..9d86178 100644
--- a/src/audio_encoder.h
+++ b/src/audio_encoder.h
@@ -36,12 +36,12 @@
#include "info.h"
-#include "liblame_wrapper.h"
+#include "threadsafe_queue_priority.h"
class AudioEncoder : public Thread {
public:
- AudioEncoder(FramePriorityQueue *in, pthread_mutex_t *in_mutex, sem_t *in_sem,
- FramePriorityQueue *out, pthread_mutex_t *out_mutex, sem_t *out_sem,
+ AudioEncoder(ThreadSafeQueuePriority *audio_input_queue,
+ ThreadSafeQueuePriority *audio_output_queue,
Info *info);
~AudioEncoder();
@@ -50,19 +50,10 @@ public:
volatile bool running;
private:
- unsigned int frame_number;
-
Info *info;
- // Input/Output queues
- FramePriorityQueue *inputqueue;
- FramePriorityQueue *outputqueue;
- pthread_mutex_t *input_mutex;
- pthread_mutex_t *output_mutex;
-
- //thread stuff
- sem_t *input_sem;
- sem_t *output_sem;
+ ThreadSafeQueuePriority *input_queue;
+ ThreadSafeQueuePriority *output_queue;
};