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>
|
2007-02-24 20:36:27 +00:00
|
|
|
#import "Plugin.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
|
|
|
|
2016-11-04 05:43:37 +00:00
|
|
|
@interface WavPackReader : NSObject
|
|
|
|
{
|
|
|
|
id<CogSource> source;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithSource:(id<CogSource>)s;
|
|
|
|
|
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2007-02-24 20:36: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;
|
|
|
|
|
2016-11-04 05:43:37 +00:00
|
|
|
WavPackReader *wv;
|
|
|
|
WavPackReader *wvc;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
|
|
|
int bitsPerSample;
|
|
|
|
int channels;
|
2016-08-28 20:03:54 +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
|