cog/Plugins/MonkeysAudio/MonkeysAudioPropertiesReade...

41 lines
682 B
Plaintext
Raw Normal View History

//
// MADPropertiesReader.m
// MAD
//
// Created by Vincent Spader on 2/24/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "MonkeysAudioPropertiesReader.h"
#import "MonkeysAudioDecoder.h"
@implementation MonkeysAudioPropertiesReader
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source
{
NSDictionary *properties;
MonkeysAudioDecoder *decoder;
decoder = [[MonkeysAudioDecoder alloc] init];
if (![decoder open:source])
{
2007-10-13 07:51:42 +00:00
[decoder release];
return nil;
}
properties = [decoder properties];
[decoder close];
2007-10-13 07:51:42 +00:00
[decoder release];
return properties;
}
+ (NSArray *)fileTypes
{
return [MonkeysAudioDecoder fileTypes];
}
@end