Cog/Plugins/Musepack/MusepackDecoder.h
Christopher Snowhill 7994929a80 Audio: Add full timestamp accounting to playback
Audio Chunks now have full timestamp accounting, including DSP playback
speed ratio for the one DSP that can change play ratio, Rubber Band.
Inputs which support looping and actually reporting the absolute play
position now do so.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-02-12 14:08:43 -08:00

37 lines
801 B
Objective-C

//
// MusepackFile.h
// zyVorbis
//
// Created by Vincent Spader on 1/23/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
#import <mpcdec/decoder.h>
#import <mpcdec/internal.h>
#import <mpcdec/mpcdec.h>
@interface MusepackDecoder : NSObject <CogDecoder> {
id<CogSource> source;
mpc_reader reader;
mpc_demux *demux;
mpc_streaminfo info;
char buffer[MPC_FRAME_LENGTH * 4];
int bufferFrames;
MPC_SAMPLE_FORMAT sampleBuffer[MPC_DECODER_BUFFER_LENGTH];
float floatBuffer[1024 * 2];
int bitrate;
float frequency;
long totalFrames;
long frame;
}
- (BOOL)writeToBuffer:(float *)sample_buffer fromBuffer:(const MPC_SAMPLE_FORMAT *)p_buffer frames:(unsigned)frames;
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
@end