cog/SoundFile/AACFile.h

31 lines
509 B
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
//
// AACFile.h
// Cog
//
// Created by Zaphod Beeblebrox on 5/31/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#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;
char buffer[SAMPLE_BUFFER_SIZE];
int bufferAmount;
char inputBuffer[INPUT_BUFFER_SIZE];
int inputAmount;
}
@end