2005-06-06 17:47:29 +00:00
|
|
|
//
|
|
|
|
// WavPackFile.h
|
|
|
|
// Cog
|
|
|
|
//
|
2005-07-02 21:02:06 +00:00
|
|
|
// Created by Vincent Spader on 6/6/05.
|
|
|
|
// Copyright 2005 Vincent Spader All rights reserved.
|
2005-06-06 17:47:29 +00:00
|
|
|
//
|
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
#import "Plugin.h"
|
2022-02-07 05:49:27 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2005-06-06 17:47:29 +00:00
|
|
|
|
2013-09-30 19:43:21 +00:00
|
|
|
#define ChunkHeader WavPackChunkHeader
|
|
|
|
|
|
|
|
#import <WavPack/wavpack.h>
|
2005-06-06 17:47:29 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
@interface WavPackReader : NSObject {
|
|
|
|
id<CogSource> source;
|
2016-11-04 05:43:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithSource:(id<CogSource>)s;
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
@interface WavPackDecoder : NSObject <CogDecoder> {
|
2005-06-06 17:47:29 +00:00
|
|
|
WavpackContext *wpc;
|
2007-03-04 20:47:49 +00:00
|
|
|
WavpackStreamReader reader;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
|
|
|
WavPackReader *wv;
|
|
|
|
WavPackReader *wvc;
|
|
|
|
|
|
|
|
int32_t *inputBuffer;
|
|
|
|
size_t inputBufferSize;
|
|
|
|
|
|
|
|
BOOL isDSD;
|
|
|
|
BOOL isLossy;
|
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
int bitsPerSample;
|
|
|
|
int channels;
|
2022-02-07 10:06:51 +00:00
|
|
|
uint32_t channelConfig;
|
2022-02-07 05:49:27 +00:00
|
|
|
BOOL floatingPoint;
|
2007-02-24 20:36:27 +00:00
|
|
|
int bitrate;
|
|
|
|
float frequency;
|
2007-11-24 20:16:27 +00:00
|
|
|
long totalFrames;
|
2005-06-06 17:47:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|