cog/Plugins/WavPack/WavPackDecoder.h

45 lines
692 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 <Cocoa/Cocoa.h>
#import "Plugin.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;
int bitsPerSample;
int channels;
BOOL floatingPoint;
int bitrate;
float frequency;
long totalFrames;
2005-06-06 17:47:29 +00:00
}
@end