Cog/Plugins/CueSheet/CueSheetDecoder.h
Christopher Snowhill 477feaab1d Now properly supports sample format changing
Sample format can now change dynamically at play time, and the player
will resample it as necessary, extrapolating edges between changes to
reduce the potential for gaps.

Currently supported formats for this:

- FLAC
- Ogg Vorbis
- Any format supported by FFmpeg, such as MP3 or AAC

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-07 19:18:45 -08:00

36 lines
691 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;
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