Changeset 1024

Show
Ignore:
Timestamp:
10/21/07 12:41:16 (15 months ago)
Author:
stephen_booth
Message:

Cleaned up

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Audio/Properties/MonkeysAudioPropertiesReader.mm

    r731 r1024  
    2929 
    3030- (BOOL) readProperties:(NSError **)error 
    31 { 
    32         NSMutableDictionary                             *propertiesDictionary; 
    33         NSString                                                *path; 
    34         IAPEDecompress                                  *decompressor; 
    35         str_utf16                                               *chars; 
    36         int                                                             result; 
    37          
     31{        
    3832        // Setup converter 
    39         path                    = [[self valueForKey:StreamURLKey] path]; 
    40         chars                   = GetUTF16FromANSI([path fileSystemRepresentation]); 
     33        NSString        *path   = [[self valueForKey:StreamURLKey] path]; 
     34        str_utf16       *chars  = GetUTF16FromANSI([path fileSystemRepresentation]); 
    4135        NSAssert(NULL != chars, NSLocalizedStringFromTable(@"Unable to allocate memory.", @"Errors", @"")); 
    4236         
    43         decompressor    = CreateIAPEDecompress(chars, &result);  
     37        int result; 
     38        IAPEDecompress *decompressor = CreateIAPEDecompress(chars, &result);     
    4439        if(NULL == decompressor || ERROR_SUCCESS != result) { 
    4540                if(nil != error) { 
     
    5853        } 
    5954 
    60         propertiesDictionary = [NSMutableDictionary dictionary]; 
     55        NSMutableDictionary *propertiesDictionary = [NSMutableDictionary dictionary]; 
    6156         
    6257        [propertiesDictionary setValue:NSLocalizedStringFromTable(@"Monkey's Audio", @"Formats", @"") forKey:PropertiesFileTypeKey]; 
     
    6459        [propertiesDictionary setValue:NSLocalizedStringFromTable(@"APE", @"Formats", @"") forKey:PropertiesFormatDescriptionKey]; 
    6560        [propertiesDictionary setValue:[NSNumber numberWithLongLong:decompressor->GetInfo(APE_DECOMPRESS_TOTAL_BLOCKS)] forKey:PropertiesTotalFramesKey]; 
    66         //      [propertiesDictionary setValue:[NSNumber numberWithLong:bitrate] forKey:@"averageBitrate"]; 
     61//      [propertiesDictionary setValue:[NSNumber numberWithLong:bitrate] forKey:@"averageBitrate"]; 
    6762        [propertiesDictionary setValue:[NSNumber numberWithUnsignedInt:decompressor->GetInfo(APE_INFO_BITS_PER_SAMPLE)] forKey:PropertiesBitsPerChannelKey]; 
    6863        [propertiesDictionary setValue:[NSNumber numberWithUnsignedInt:decompressor->GetInfo(APE_INFO_CHANNELS)] forKey:PropertiesChannelsPerFrameKey];