Commit fafcd55e authored by Tristan Matthews's avatar Tristan Matthews

audio: delete commented-out code

parent cec69db7
......@@ -770,7 +770,6 @@ void AlsaLayer::playback(int maxSamples)
bytesToGet = std::min(maxNbBytesToGet, bytesToGet);
const size_t samplesToGet = bytesToGet / sizeof(SFLAudioSample);
//std::vector<SFLAudioSample> out(samplesToGet, 0);
AudioBuffer out(samplesToGet, 1, mainBufferSampleRate);
Manager::instance().getMainBuffer().getData(out, MainBuffer::DEFAULT_ID);
......
......@@ -122,9 +122,6 @@ void AudioBuffer::applyGain(double gain)
for (auto &channel : samples_)
for (auto &sample : channel)
sample *= g;
/* for (unsigned i=0, f=frames(), c=channels(); i < c; ++i)
for (unsigned j = 0; j < f; ++j)
samples_[i][j] *= g;*/
}
size_t AudioBuffer::interleave(SFLAudioSample* out) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment