Commit f26580d7 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28691: pulseaudio: cleanup

parent f58b386f
......@@ -529,22 +529,10 @@ void PulseLayer::readFromMic()
unsigned int mainBufferSampleRate = Manager::instance().getMainBuffer().getInternalSamplingRate();
bool resample = sampleRate_ != mainBufferSampleRate;
/*if (resample) {
double resampleFactor = (double) sampleRate_ / mainBufferSampleRate;
//bytes = (double) bytes * resampleFactor;
}*/
/*if (bytes > mic_buf_size_) {
mic_buf_size_ = bytes;
delete [] mic_buffer_;
mic_buffer_ = new SFLAudioSample[samples];
}*/
AudioBuffer * out = ∈
if (resample) {
mic_buffer_.setSampleRate(mainBufferSampleRate);
//converter_.resample((SFLAudioSample*)data, mic_buffer_, samples, mainBufferSampleRate, sampleRate_, samples);
converter_.resample(in, mic_buffer_);
out = &mic_buffer_;
}
......
Supports Markdown
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