cog/Plugins/Musepack/MusepackDecoder.h

35 lines
702 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 <mpcdec/decoder.h>
#import <mpcdec/internal.h>
#import "Plugin.h"
2005-06-02 18:16:43 +00:00
@interface MusepackDecoder : NSObject <CogDecoder>
{
id<CogSource> source;
mpc_reader reader;
mpc_demux* demux;
mpc_streaminfo info;
char buffer[MPC_FRAME_LENGTH*4];
int bufferFrames;
int bitrate;
float frequency;
long totalFrames;
2005-06-02 18:16:43 +00:00
}
- (BOOL)writeToBuffer:(float *)sample_buffer fromBuffer:(const MPC_SAMPLE_FORMAT *)p_buffer frames:(unsigned)frames;
2005-06-02 18:16:43 +00:00
- (void)setSource:(id<CogSource>)s;
- (id<CogSource>)source;
2005-06-02 18:16:43 +00:00
@end