Skip to content

Commit f2226ba

Browse files
committed
AudioFrame::set_scaled_output() replaces scale_output_chan()
The latter is not as useful
1 parent f2cb4ba commit f2226ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/audio_frame.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public:
2222
return scaleInput(chan[chan_num]);
2323
}
2424

25-
float scale_output_chan(unsigned chan_num) const {
26-
return scaleOutput(chan[chan_num]);
25+
void set_scaled_output(unsigned chan_num, float val) {
26+
chan[chan_num] = scaleOutput(val);
2727
}
2828

2929
static constexpr float scaleInput(SampleType val) {

0 commit comments

Comments
 (0)