cog/Plugins/Vorbis/VorbisDecoder.h

57 lines
938 B
C
Raw Normal View History

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
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
// config.h things
#define __MACOSX__
#define HAVE_CONFIG_H
#import <vorbis/codec.h>
#import <vorbis/vorbisfile.h>
2005-06-02 18:16:43 +00:00
#undef __MACOSX__
#undef HAVE_CONFIG_H
@interface VorbisDecoder : NSObject <CogDecoder> {
id<CogSource> source;
2005-06-02 18:16:43 +00:00
OggVorbis_File vorbisRef;
int currentSection;
int lastSection;
BOOL seekable;
int bitrate;
int channels;
float frequency;
long totalFrames;
NSString *artist;
NSString *albumartist;
NSString *album;
NSString *title;
NSString *genre;
NSNumber *year;
NSNumber *track;
NSNumber *disc;
float replayGainAlbumGain;
float replayGainAlbumPeak;
float replayGainTrackGain;
float replayGainTrackPeak;
NSString *icygenre;
NSString *icyalbum;
NSString *icyartist;
NSString *icytitle;
NSData *albumArt;
2005-06-02 18:16:43 +00:00
}
2005-06-02 18:16:43 +00:00
@end