Skip to content

Commit 8818535

Browse files
committed
FormatConverterStream: cleanup
1 parent 930818a commit 8818535

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/AudioTools/CoreAudio/AudioStreamsConverter.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -863,12 +863,6 @@ class FormatConverterStream : public ReformatBaseStream {
863863
ResampleStream sampleRateConverter;
864864
bool is_buffered = true;
865865

866-
/// e.g if we do channels 2->1 we nead to double the input data
867-
/// @return
868-
float byteFactor() {
869-
return (float)from_cfg.channels / (float)to_cfg.channels *
870-
(float)from_cfg.bits_per_sample / (float)to_cfg.bits_per_sample;
871-
}
872866
};
873867

874868
} // namespace audio_tools

0 commit comments

Comments
 (0)