2008-02-26 20:53:18 +00:00
|
|
|
//
|
|
|
|
// WMADecoder.h
|
|
|
|
// WMA
|
|
|
|
//
|
|
|
|
// Created by Andre Reffhaug on 2/26/08.
|
|
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2008-02-28 05:33:56 +00:00
|
|
|
#import "WMA/avcodec.h"
|
|
|
|
#import "WMA/avformat.h"
|
2008-02-26 20:53:18 +00:00
|
|
|
|
2008-02-28 05:33:56 +00:00
|
|
|
@interface WMADecoder : NSObject <CogDecoder>
|
|
|
|
{
|
|
|
|
id<CogSource> source;
|
2008-02-28 19:29:22 +00:00
|
|
|
void *sampleBuffer;
|
2008-03-01 14:11:30 +00:00
|
|
|
int numFrames;
|
2008-02-28 19:29:22 +00:00
|
|
|
int samplePos;
|
2008-02-28 05:33:56 +00:00
|
|
|
|
|
|
|
AVFormatContext *ic;
|
|
|
|
AVCodecContext *c;
|
|
|
|
AVCodec *codec;
|
|
|
|
|
|
|
|
BOOL seekable;
|
|
|
|
int bitsPerSample;
|
|
|
|
int bitrate;
|
|
|
|
int channels;
|
|
|
|
float frequency;
|
|
|
|
long totalFrames;
|
|
|
|
|
2008-02-26 20:53:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|