cog/Plugins/WavPack/WavPackDecoder.h

50 lines
781 B
C
Raw Normal View History

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
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
2005-06-06 17:47:29 +00:00
#define ChunkHeader WavPackChunkHeader
#import <WavPack/wavpack.h>
2005-06-06 17:47:29 +00:00
@interface WavPackReader : NSObject {
id<CogSource> source;
}
- (id)initWithSource:(id<CogSource>)s;
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
@end
@interface WavPackDecoder : NSObject <CogDecoder> {
2005-06-06 17:47:29 +00:00
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;
2005-06-06 17:47:29 +00:00
}
@end