Cog/Plugins/APL/APLDecoder.h
Christopher Snowhill 6cda7696f3
APL: Fix position handling for DSD
Correctly scale the AudioChunk frame counts. This more and more makes me
think I should be scaling this in the AudioChunk code instead, but then
code may not know about the special case of every 8 frames only being
one byte per channel.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2023-07-21 00:18:20 -07:00

26 lines
457 B
Objective-C

//
// APLDecoder.h
#import <Cocoa/Cocoa.h>
#import "Plugin.h"
@class APLFile;
@interface APLDecoder : NSObject <CogDecoder> {
id<CogSource> source;
id<CogDecoder> decoder;
int bytesPerFrame; // Number of bytes per frame, ie channels * (bitsPerSample/8)
long framePosition; // current position in frames
long trackStart;
long trackEnd; // frames until end of track.
long trackLength; // track len in frames
BOOL isDSD;
APLFile *apl;
}
@end