- Timestamp:
- 12/02/09 19:58:45 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp
r9869 r10851 4 4 5 5 #include <OpenThreads/Thread> 6 7 #include <osg/Timer> 6 8 7 9 #include "FFmpegClocks.hpp" … … 30 32 31 33 void open(AVStream * stream); 34 void pause(bool pause); 32 35 void close(bool waitForThreadToExit); 33 36 … … 52 55 53 56 54 PacketQueue & m_packets;55 FFmpegClocks & m_clocks;56 AVStream * m_stream;57 AVCodecContext * m_context;58 FFmpegPacket m_packet;59 const uint8_t * m_packet_data;60 int m_bytes_remaining;57 PacketQueue & m_packets; 58 FFmpegClocks & m_clocks; 59 AVStream * m_stream; 60 AVCodecContext * m_context; 61 FFmpegPacket m_packet; 62 const uint8_t * m_packet_data; 63 int m_bytes_remaining; 61 64 62 Buffer m_audio_buffer;63 size_t m_audio_buf_size;64 size_t m_audio_buf_index;65 Buffer m_audio_buffer; 66 size_t m_audio_buf_size; 67 size_t m_audio_buf_index; 65 68 66 int m_frequency;67 int m_nb_channels;68 osg::AudioStream::SampleFormat m_sample_format;69 int m_frequency; 70 int m_nb_channels; 71 osg::AudioStream::SampleFormat m_sample_format; 69 72 70 SinkPtr m_audio_sink;73 SinkPtr m_audio_sink; 71 74 72 bool m_end_of_stream; 73 volatile bool m_exit; 75 osg::Timer m_pause_timer; 76 77 bool m_end_of_stream; 78 bool m_paused; 79 volatile bool m_exit; 74 80 }; 75 81
