From 2b919eac78cd6ebe07d6ca7cd01450e6f1aea75b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Dec 2020 02:44:19 -0800 Subject: Use an alias for the DevFmtType type --- alc/alu.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'alc/alu.cpp') diff --git a/alc/alu.cpp b/alc/alu.cpp index fe42b14b..1824a5a9 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1888,18 +1888,16 @@ template void Write(const al::span InBuffer, void *OutBuffer, const size_t Offset, const size_t SamplesToDo, const size_t FrameStep) { - using SampleType = typename DevFmtTypeTraits::Type; - ASSUME(FrameStep > 0); ASSUME(SamplesToDo > 0); - SampleType *outbase = static_cast(OutBuffer) + Offset*FrameStep; + DevFmtType_t *outbase = static_cast*>(OutBuffer) + Offset*FrameStep; for(const FloatBufferLine &inbuf : InBuffer) { - SampleType *out{outbase++}; + DevFmtType_t *out{outbase++}; auto conv_sample = [FrameStep,&out](const float s) noexcept -> void { - *out = SampleConv(s); + *out = SampleConv>(s); out += FrameStep; }; std::for_each(inbuf.begin(), inbuf.begin()+SamplesToDo, conv_sample); -- cgit v1.2.3