39 lines
590 B
Objective-C
39 lines
590 B
Objective-C
//
|
|
// MADPropertiesReader.m
|
|
// MAD
|
|
//
|
|
// Created by Vincent Spader on 2/24/07.
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "VorbisPropertiesReader.h"
|
|
#import "VorbisDecoder.h"
|
|
|
|
@implementation VorbisPropertiesReader
|
|
|
|
- (NSDictionary *)propertiesForURL:(NSURL *)url
|
|
{
|
|
NSDictionary *properties;
|
|
VorbisDecoder *decoder;
|
|
|
|
decoder = [[VorbisDecoder alloc] init];
|
|
if (![decoder open:url])
|
|
{
|
|
return nil;
|
|
}
|
|
|
|
properties = [decoder properties];
|
|
|
|
[decoder close];
|
|
|
|
return properties;
|
|
}
|
|
|
|
|
|
+ (NSArray *)fileTypes
|
|
{
|
|
return [VorbisDecoder fileTypes];
|
|
}
|
|
|
|
@end
|