Cog/Plugins/WavPack/WavPackDecoder.h
Christopher Snowhill ee7aae922d Audio: Add full timestamp accounting to playback
Audio Chunks now have full timestamp accounting, including DSP playback
speed ratio for the one DSP that can change play ratio, Rubber Band.
Inputs which support looping and actually reporting the absolute play
position now do so.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-02-12 14:08:17 -08:00

50 lines
794 B
Objective-C

//
// WavPackFile.h
// Cog
//
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
#define ChunkHeader WavPackChunkHeader
#import <WavPack/wavpack.h>
@interface WavPackReader : NSObject {
id<CogSource> source;
}
- (id)initWithSource:(id<CogSource>)s;
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
@end
@interface WavPackDecoder : NSObject <CogDecoder> {
WavpackContext *wpc;
WavpackStreamReader reader;
WavPackReader *wv;
WavPackReader *wvc;
int32_t *inputBuffer;
size_t inputBufferSize;
BOOL isDSD;
BOOL isLossy;
int bitsPerSample;
int channels;
uint32_t channelConfig;
BOOL floatingPoint;
int bitrate;
float frequency;
long totalFrames;
long frame;
}
@end