From f171d50d80841a8f56e6c69c57ed0992106193f4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 30 Jul 2018 13:48:56 -0700 Subject: [PATCH] Remove some extraneous parenthesis --- src/decoders/sndfile.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/decoders/sndfile.cpp b/src/decoders/sndfile.cpp index fde1fca..961bf17 100644 --- a/src/decoders/sndfile.cpp +++ b/src/decoders/sndfile.cpp @@ -238,24 +238,20 @@ SharedPtr SndFileDecoderFactory::createDecoder(UniquePtr switch(sndinfo.format&SF_FORMAT_SUBMASK) { case SF_FORMAT_PCM_U8: - stype = SampleType::UInt8; - break; + stype = SampleType::UInt8; + break; case SF_FORMAT_ULAW: if(Context::GetCurrent().isSupported(sconfig, SampleType::Mulaw)) - { stype = SampleType::Mulaw; - } break; case SF_FORMAT_FLOAT: case SF_FORMAT_DOUBLE: case SF_FORMAT_VORBIS: if(Context::GetCurrent().isSupported(sconfig, SampleType::Float32)) - { stype = SampleType::Float32; - break; - } - /*fall-through*/ + break; default: + // For everything else, decode to signed 16-bit stype = SampleType::Int16; break; } -- 2.11.4.GIT