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
|
|
|
|
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;
|
|
|
|
|
|
|
|
id<CogSource> source;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
|
|
|
int bitsPerSample;
|
|
|
|
int channels;
|
|
|
|
int bitrate;
|
|
|
|
float frequency;
|
2007-11-24 20:16:27 +00:00
|
|
|
long totalFrames;
|
2005-06-06 17:47:29 +00:00
|
|
|
}
|
|
|
|
|
2007-03-04 20:47:49 +00:00
|
|
|
- (void)setSource:(id<CogSource>)s;
|
|
|
|
- (id<CogSource>)source;
|
|
|
|
|
2005-06-06 17:47:29 +00:00
|
|
|
@end
|