aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/coreaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/coreaudio.cpp')
-rw-r--r--Alc/backends/coreaudio.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/backends/coreaudio.cpp b/Alc/backends/coreaudio.cpp
index 2caa0852..c5da9f24 100644
--- a/Alc/backends/coreaudio.cpp
+++ b/Alc/backends/coreaudio.cpp
@@ -656,14 +656,13 @@ ALCenum CoreAudioCapture::captureSamples(void *buffer, ALCuint samples)
auto rec_vec = mRing->getReadVector();
const void *src0{rec_vec.first.buf};
auto src0len = static_cast<ALsizei>(rec_vec.first.len);
- auto got = static_cast<ALuint>(SampleConverterInput(mConverter.get(), &src0, &src0len,
- buffer, samples));
+ auto got = static_cast<ALuint>(mConverter->convert(&src0, &src0len, buffer, samples));
size_t total_read{rec_vec.first.len - src0len};
if(got < samples && !src0len && rec_vec.second.len > 0)
{
const void *src1{rec_vec.second.buf};
auto src1len = static_cast<ALsizei>(rec_vec.second.len);
- got += static_cast<ALuint>(SampleConverterInput(mConverter.get(), &src1, &src1len,
+ got += static_cast<ALuint>(mConverter->convert(&src1, &src1len,
static_cast<char*>(buffer)+got, samples-got));
total_read += rec_vec.second.len - src1len;
}
@@ -675,7 +674,7 @@ ALCenum CoreAudioCapture::captureSamples(void *buffer, ALCuint samples)
ALCuint CoreAudioCapture::availableSamples()
{
if(!mConverter) return mRing->readSpace();
- return SampleConverterAvailableOut(mConverter.get(), mRing->readSpace());
+ return mConverter->availableOut(mRing->readSpace());
}
} // namespace