cog/Plugins/WavPack/WavPackDecoder.h

45 lines
692 B
Objective-C

//
// WavPackFile.h
// Cog
//
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Plugin.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;
int bitsPerSample;
int channels;
BOOL floatingPoint;
int bitrate;
float frequency;
long totalFrames;
}
@end