DSD wasn't tracking the correct sample count, because DSD Audio Chunks store the byte count, rather than the bit count. This may be changed in the future, so I'll have to remember. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
41 lines
746 B
Objective-C
41 lines
746 B
Objective-C
//
|
|
// CueSheetDecoder.h
|
|
// CueSheet
|
|
//
|
|
// Created by Zaphod Beeblebrox on 10/8/07.
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Plugin.h"
|
|
|
|
@class CueSheet;
|
|
@class CueSheetTrack;
|
|
|
|
@interface CueSheetDecoder : NSObject <CogDecoder> {
|
|
id<CogSource> source;
|
|
id<CogDecoder> decoder;
|
|
|
|
NSURL *sourceURL;
|
|
|
|
BOOL seekedToStart;
|
|
BOOL isDSD;
|
|
|
|
int bytesPerFrame; // Number of bytes per frame, ie channels * (bitsPerSample/8)
|
|
|
|
long framePosition; // Current position in frames.
|
|
|
|
long trackStart; // Starting frame of track.
|
|
long trackEnd; // Frames until end of track.
|
|
|
|
BOOL embedded;
|
|
BOOL noFragment;
|
|
BOOL observersAdded;
|
|
NSURL *baseURL;
|
|
|
|
CueSheet *cuesheet;
|
|
CueSheetTrack *track;
|
|
}
|
|
|
|
@end
|