cog/Plugins/Musepack/MusepackDecoder.h

33 lines
651 B
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
//
// MusepackFile.h
// zyVorbis
//
// Created by Vincent Spader on 1/23/05.
2005-07-02 21:02:06 +00:00
// Copyright 2005 Vincent Spader All rights reserved.
2005-06-02 18:16:43 +00:00
//
#import <Cocoa/Cocoa.h>
#import <MPCDec/mpcdec.h>
#import "Plugin.h"
2005-06-02 18:16:43 +00:00
@interface MusepackDecoder : NSObject <CogDecoder>
{
id<CogSource> source;
2005-06-02 18:16:43 +00:00
mpc_decoder decoder;
mpc_streaminfo info;
mpc_reader reader;
char buffer[MPC_FRAME_LENGTH*4];
2005-06-02 18:16:43 +00:00
int bufferAmount;
int bitrate;
float frequency;
double length;
2005-06-02 18:16:43 +00:00
}
- (BOOL)writeSamplesToBuffer:(uint16_t *)sample_buffer fromBuffer:(const MPC_SAMPLE_FORMAT *)p_buffer ofSize:(unsigned)p_size;
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
2005-06-02 18:16:43 +00:00
@end