Changeset 1077

Show
Ignore:
Timestamp:
02/10/08 07:59:50 (11 months ago)
Author:
stephen_booth
Message:

Correct RVA2 frame identification

Location:
trunk/Audio/Metadata
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/Audio/Metadata/Readers/MP3MetadataReader.mm

    r1076 r1077  
    257257                                        continue; 
    258258                                 
    259                                 if(TagLib::String("replaygain_track_gain", TagLib::String::Latin1) == relativeVolume->identification()) { 
     259                                if(TagLib::String("track", TagLib::String::Latin1) == relativeVolume->identification()) { 
    260260                                        // Attempt to use the master volume if present 
    261261                                        TagLib::List<TagLib::ID3v2::RelativeVolumeFrame::ChannelType>   channels                = relativeVolume->channels(); 
     
    273273                                        } 
    274274                                } 
    275                                 else if(TagLib::String("replaygain_album_gain", TagLib::String::Latin1) == relativeVolume->identification()) { 
     275                                else if(TagLib::String("album", TagLib::String::Latin1) == relativeVolume->identification()) { 
    276276                                        // Attempt to use the master volume if present 
    277277                                        TagLib::List<TagLib::ID3v2::RelativeVolumeFrame::ChannelType>   channels                = relativeVolume->channels(); 
  • trunk/Audio/Metadata/Writers/MP3MetadataWriter.mm

    r1075 r1077  
    264264                NSAssert(NULL != relativeVolume, @"Unable to allocate memory."); 
    265265 
    266                 relativeVolume->setIdentification(TagLib::String("replaygain_track_gain", TagLib::String::Latin1)); 
     266                relativeVolume->setIdentification(TagLib::String("track", TagLib::String::Latin1)); 
    267267                relativeVolume->setVolumeAdjustment([trackGain doubleValue], TagLib::ID3v2::RelativeVolumeFrame::MasterVolume); 
    268268                 
     
    274274                NSAssert(NULL != relativeVolume, @"Unable to allocate memory."); 
    275275                 
    276                 relativeVolume->setIdentification(TagLib::String("replaygain_album_gain", TagLib::String::Latin1)); 
     276                relativeVolume->setIdentification(TagLib::String("album", TagLib::String::Latin1)); 
    277277                relativeVolume->setVolumeAdjustment([albumGain doubleValue], TagLib::ID3v2::RelativeVolumeFrame::MasterVolume); 
    278278