]> git.sesse.net Git - casparcg/blob - core/producer/ffmpeg/audio/audio_decoder.h
2.0.0.2:
[casparcg] / core / producer / ffmpeg / audio / audio_decoder.h
1 #pragma once\r
2 \r
3 #include "../packet.h"\r
4 \r
5 namespace caspar{ namespace ffmpeg      {\r
6 \r
7 class audio_decoder : boost::noncopyable\r
8 {\r
9 public:\r
10         audio_decoder();\r
11         audio_packet_ptr execute(const audio_packet_ptr& audio_packet);\r
12         \r
13         /// <summary> The alignment </summary>\r
14         /// <remarks> Four sec of 16 bit stereo 48kHz should be enough </remarks>\r
15         static const int ALIGNMENT = 16 ;\r
16 \r
17         /// <summary> Size of the audio decomp buffer </summary>\r
18         static const int AUDIO_DECOMP_BUFFER_SIZE = 4*48000*4+ALIGNMENT;\r
19 private:\r
20         struct implementation;\r
21         std::shared_ptr<implementation> impl_;\r
22 };\r
23 typedef std::shared_ptr<audio_decoder> audio_decoder_ptr;\r
24 typedef std::unique_ptr<audio_decoder> audio_decoder_uptr;\r
25 \r
26 }}