diff options
author | deva <deva> | 2005-10-04 21:39:53 +0000 |
---|---|---|
committer | deva <deva> | 2005-10-04 21:39:53 +0000 |
commit | 111b16802de661228ef414eb6ec7484e2fa186ed (patch) | |
tree | d6d1ce9e8b857371414f33ff460266258c462275 /src/audio_encoder.h | |
parent | 9640339f2e9dc126406f6b6f8a091b924898b4f5 (diff) |
*** empty log message ***
Diffstat (limited to 'src/audio_encoder.h')
-rw-r--r-- | src/audio_encoder.h | 19 |
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; }; |