| 909 | return cg_block_->SampleBuffer(); |
| 910 | } |
| 911 | void Cn4Block::Init(const MdfBlock &id_block) { |
| 912 | MdfBlock::Init(id_block); |
| 913 | if (id_block.BlockType() == "CG") { |
| 914 | cg_block_ = dynamic_cast<const Cg4Block *>(&id_block); |
| 915 | } else if (id_block.BlockType() == "CN") { |
| 916 | auto* channel = dynamic_cast<const Cn4Block *>(&id_block); |
| 917 | // Handle composite channels |
| 918 | cg_block_ = channel != nullptr ? channel->cg_block_ : nullptr; |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | void Cn4Block::AddCc4(std::unique_ptr<Cc4Block> &cc4) { |
| 923 | cc_block_ = std::move(cc4); |
no test coverage detected