Cog/Plugins/Vorbis/VorbisDecoder.h
Christopher Snowhill 0012d1b17e Implement dynamic metadata reading for streams
Supported by FFmpeg, FLAC, Ogg Vorbis, and Opus.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-09 13:44:50 -08:00

41 lines
644 B
Objective-C

//
// VorbisFile.h
// zyVorbis
//
// Created by Vincent Spader on 1/22/05.
// Copyright 2005 Vincent Spader All rights reserved.
//
#import "Plugin.h"
#import <Cocoa/Cocoa.h>
// config.h things
#define __MACOSX__
#define HAVE_CONFIG_H
#import <Vorbis/codec.h>
#import <Vorbis/vorbisfile.h>
#undef __MACOSX__
#undef HAVE_CONFIG_H
@interface VorbisDecoder : NSObject <CogDecoder> {
id<CogSource> source;
OggVorbis_File vorbisRef;
int currentSection;
int lastSection;
BOOL seekable;
int bitrate;
int channels;
float frequency;
long totalFrames;
NSString *genre;
NSString *album;
NSString *artist;
NSString *title;
}
@end