int tag_;\r
core::video_mode::type mode_;\r
\r
- implementation()\r
+ implementation(int tag)\r
+ : tag_(tag)\r
{\r
}\r
\r
}\r
};\r
\r
-write_frame::write_frame() : impl_(new implementation()){}\r
+write_frame::write_frame(int tag) : impl_(new implementation(tag)){}\r
write_frame::write_frame(ogl_device& ogl, int32_t tag, const core::pixel_format_desc& desc) \r
: impl_(new implementation(ogl, tag, desc)){}\r
write_frame::write_frame(const write_frame& other) : impl_(new implementation(*other.impl_)){}\r
class write_frame : public core::basic_frame, boost::noncopyable\r
{\r
public: \r
- write_frame();\r
+ write_frame(int tag);\r
explicit write_frame(ogl_device& ogl, int tag, const core::pixel_format_desc& desc);\r
write_frame(const write_frame& other);\r
\r
codec_context_->channels != static_cast<int>(format_desc_.audio_channels)) ||\r
codec_context_->sample_fmt != AV_SAMPLE_FMT_S16)\r
{ \r
- auto resampler = av_audio_resample_init(format_desc_.audio_channels, codec_context_->channels,
- format_desc_.audio_sample_rate, codec_context_->sample_rate,
- AV_SAMPLE_FMT_S16, codec_context_->sample_fmt,
+ auto resampler = av_audio_resample_init(format_desc_.audio_channels, codec_context_->channels,\r
+ format_desc_.audio_sample_rate, codec_context_->sample_rate,\r
+ AV_SAMPLE_FMT_S16, codec_context_->sample_fmt,\r
16, 10, 0, 0.8);\r
\r
CASPAR_LOG(warning) << L" Invalid audio format.";\r
: frame_factory_(frame_factory)\r
, mode_(core::video_mode::invalid)\r
, filter_(filter.empty() ? nullptr : new caspar::filter(filter))\r
+ , fps_(frame_factory_->get_video_format_desc().fps)\r
{\r
AVCodec* dec;\r
index_ = av_find_best_stream(context.get(), AVMEDIA_TYPE_VIDEO, -1, -1, &dec, 0);\r
std::vector<safe_ptr<core::write_frame>> result;\r
\r
if(!codec_context_)\r
- result.push_back(make_safe<core::write_frame>());\r
+ result.push_back(make_safe<core::write_frame>(reinterpret_cast<int>(this)));\r
else if(!packet_buffer_.empty())\r
{\r
std::vector<std::shared_ptr<AVFrame>> av_frames;\r
<channel>\r
<video-mode>PAL</video-mode>\r
<consumers>\r
- <screen></screen>\r
- <audio></audio>\r
+ <decklink>\r
+ <device>2</device>\r
+ <embedded-audio>true</embedded-audio>\r
+ </decklink>\r
</consumers>\r
</channel>\r
</channels>\r