cog/Plugins/Musepack/MusepackPropertiesReader.m

39 lines
622 B
Matlab
Raw Normal View History

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