cog/Sound/SoundFile/AACFile.h

34 lines
553 B
C
Raw Normal View History

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;
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