Skip to content
Snippets Groups Projects
Commit fafcd55e authored by Tristan Matthews's avatar Tristan Matthews
Browse files

audio: delete commented-out code

parent cec69db7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment