diff --git a/Plugins/APL/APLDecoder.m b/Plugins/APL/APLDecoder.m index da93d0f19..cec402fa6 100644 --- a/Plugins/APL/APLDecoder.m +++ b/Plugins/APL/APLDecoder.m @@ -63,7 +63,7 @@ int channels = [[properties objectForKey:@"channels"] intValue]; // float sampleRate = [[properties objectForKey:@"sampleRate"] floatValue]; - bytesPerFrame = (bitsPerSample / 8) * channels; + bytesPerFrame = ((bitsPerSample + 7) / 8) * channels; if([apl endBlock] > [apl startBlock]) trackEnd = [apl endBlock]; //([apl endBlock] / sampleRate) * 1000.0;