2005-06-02 18:16:43 +00:00
|
|
|
//
|
|
|
|
// VorbisFile.h
|
|
|
|
// zyVorbis
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 1/22/05.
|
2005-07-02 21:02:06 +00:00
|
|
|
// Copyright 2005 Vincent Spader All rights reserved.
|
2005-06-02 18:16:43 +00:00
|
|
|
//
|
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
#import "Plugin.h"
|
2022-02-07 05:49:27 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2007-02-24 20:36:27 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
// config.h things
|
|
|
|
#define __MACOSX__
|
2007-02-24 20:36:27 +00:00
|
|
|
#define HAVE_CONFIG_H
|
|
|
|
|
2022-06-08 01:58:45 +00:00
|
|
|
#import <vorbis/codec.h>
|
|
|
|
#import <vorbis/vorbisfile.h>
|
2005-06-02 18:16:43 +00:00
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
#undef __MACOSX__
|
2007-02-24 20:36:27 +00:00
|
|
|
#undef HAVE_CONFIG_H
|
|
|
|
|
2022-02-07 05:49:27 +00:00
|
|
|
@interface VorbisDecoder : NSObject <CogDecoder> {
|
2007-03-02 01:36:52 +00:00
|
|
|
id<CogSource> source;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2005-06-02 18:16:43 +00:00
|
|
|
OggVorbis_File vorbisRef;
|
|
|
|
int currentSection;
|
2007-03-03 00:33:36 +00:00
|
|
|
int lastSection;
|
2022-02-07 05:49:27 +00:00
|
|
|
|
2007-03-02 01:36:52 +00:00
|
|
|
BOOL seekable;
|
2007-02-24 20:36:27 +00:00
|
|
|
int bitrate;
|
|
|
|
int channels;
|
|
|
|
float frequency;
|
2007-11-24 20:16:27 +00:00
|
|
|
long totalFrames;
|
2022-02-09 21:44:50 +00:00
|
|
|
|
2022-07-08 13:26:28 +00:00
|
|
|
NSDictionary *metaDict;
|
|
|
|
NSDictionary *icyMetaDict;
|
2022-06-17 17:27:17 +00:00
|
|
|
|
2022-02-12 15:16:59 +00:00
|
|
|
NSData *albumArt;
|
2005-06-02 18:16:43 +00:00
|
|
|
}
|
2007-02-24 20:36:27 +00:00
|
|
|
|
2005-06-02 18:16:43 +00:00
|
|
|
@end
|