2005-06-02 18:16:43 +00:00
|
|
|
//
|
|
|
|
// AACFile.h
|
|
|
|
// Cog
|
|
|
|
//
|
2005-07-02 21:02:06 +00:00
|
|
|
// Created by Vincent Spader on 5/31/05.
|
|
|
|
// Copyright 2005 Vincent Spader All rights reserved.
|
2005-06-02 18:16:43 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import <FAAD2/faad.h>
|
|
|
|
|
|
|
|
#import "SoundFile.h"
|
|
|
|
|
|
|
|
#define INPUT_BUFFER_SIZE 1024*16
|
|
|
|
#define SAMPLE_BUFFER_SIZE FAAD_MIN_STREAMSIZE*1024
|
|
|
|
|
|
|
|
@interface AACFile : SoundFile {
|
|
|
|
FILE *inFd;
|
|
|
|
NeAACDecHandle hAac;
|
|
|
|
NeAACDecFrameInfo hInfo;
|
|
|
|
|
2005-06-05 18:52:35 +00:00
|
|
|
unsigned long *seekTable;
|
|
|
|
int seekTableLength;
|
|
|
|
|
2005-06-02 18:16:43 +00:00
|
|
|
char buffer[SAMPLE_BUFFER_SIZE];
|
|
|
|
int bufferAmount;
|
|
|
|
|
|
|
|
char inputBuffer[INPUT_BUFFER_SIZE];
|
|
|
|
int inputAmount;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|