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