| 39 | |
| 40 | |
| 41 | COutputWaveStream::COutputWaveStream(std::shared_ptr<CSimpleFile> file, const CWaveFileFormat &fmt) : |
| 42 | file_(std::move(file)), fmt_(fmt), start_pos_(file_->GetPosition()) |
| 43 | { |
| 44 | Assert(fmt.Format == CWaveFileFormat::format_code::pcm || fmt.Format == CWaveFileFormat::format_code::ieee_float); |
| 45 | } |
| 46 | |
| 47 | COutputWaveStream::~COutputWaveStream() noexcept { |
| 48 | while (sample_count_ % fmt_.Channels) |
nothing calls this directly
no test coverage detected