JS Sound.prototype.name() now always returns file names as documented under Mac OS X.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4019 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2011-01-06 18:08:35 +00:00
parent 549d873f0b
commit 7f39d6d436

View File

@ -478,20 +478,7 @@ static void MixDown(float *inChan1, float *inChan2, float *outMix, size_t inCoun
- (NSString *)name
{
NSDictionary *comments;
NSString *result = nil;
comments = [self comments];
if (nil != comments)
{
result = [comments objectForKey:@"TITLE"];
if (nil == result) result = [comments objectForKey:@"NAME"];
}
if (nil == result) result = [[_name retain] autorelease];
if (nil == result) result = [super name];
return result;
return [[_name retain] autorelease];
}
@end