pcm/Export: add GetInputFrameSize()
This commit is contained in:
@@ -141,7 +141,7 @@ PcmExport::GetOutputFrameSize() const noexcept
|
||||
}
|
||||
#endif
|
||||
|
||||
return channels * sample_format_size(src_sample_format);
|
||||
return GetInputFrameSize();
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
@@ -184,6 +184,14 @@ public:
|
||||
*/
|
||||
void Reset() noexcept;
|
||||
|
||||
/**
|
||||
* Calculate the size of one input frame.
|
||||
*/
|
||||
gcc_pure
|
||||
size_t GetInputFrameSize() const noexcept {
|
||||
return channels * sample_format_size(src_sample_format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the size of one output frame.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user