Cog/Plugins/WavPack/WavPackDecoder.h
Christopher Snowhill a708851b63 Dependencies: Update BASS and WavPack libraries
BASSMIDI: 2.4.15.3
BASSFLAC: 2.4.5.5
BASSOPUS: 2.4.3
BASSWV: 2.4.7.4

WavPack: 5.8.1

And updated the WavPack plugin to support threaded decoding, using up to
four worker threads, as detected from the host machine's CPU count.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-03-28 16:17:25 -07:00

53 lines
837 B
Objective-C

//
// WavPackFile.h
// Cog
//
// Created by Vincent Spader on 6/6/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
#define ChunkHeader WavPackChunkHeader
#import <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;
int32_t *inputBuffer;
size_t inputBufferSize;
uint8_t *outputBuffer;
size_t outputBufferSize;
BOOL isDSD;
BOOL isLossy;
int bitsPerSample;
int channels;
uint32_t channelConfig;
BOOL floatingPoint;
int bitrate;
float frequency;
long totalFrames;
long frame;
}
@end