Skip to content

Commit

Permalink
Allow decoding aiff using ffmpeg.dll
Browse files Browse the repository at this point in the history
- Add aiff to Settings - Formats. Use ffmpeg.dll as Decoder.
- Slightly increase height of listViewFormats in order to avoid
  initial scrollbars in Settings - Formats, after aiff has been added.
- In order to decode AIFF files using CUETools, ffmpeg 6.0 dlls
  need to be copied to plugins\win32 or plugins\x64 as usual.
- Resolves #298
  • Loading branch information
c72578 committed Oct 12, 2023
1 parent 80c7332 commit 955881a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CUETools.Codecs.ffmpeg/DecoderSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,13 @@ public MpegDecoderSettings()
this.Init();
}
}
public class AiffDecoderSettings : DecoderSettings, IAudioDecoderSettings
{
public override string Extension => "aiff";
public override string Format => "aiff";
public AiffDecoderSettings()
{
this.Init();
}
}
}
1 change: 1 addition & 0 deletions CUETools.Codecs/CUEToolsCodecsConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void Init(List<IAudioEncoderSettings> src_encoders, List<IAudioDecoderSet
formats.Add("opus", new CUEToolsFormat("opus", CUEToolsTagger.TagLibSharp, false, true, false, true, null, encodersViewModel.GetDefault("opus", false), null));
formats.Add("mlp", new CUEToolsFormat("mlp", CUEToolsTagger.APEv2, true, false, false, false, null, null, decodersViewModel.GetDefault("mlp")));
formats.Add("aob", new CUEToolsFormat("aob", CUEToolsTagger.APEv2, true, false, false, false, null, null, decodersViewModel.GetDefault("aob")));
formats.Add("aiff", new CUEToolsFormat("aiff", CUEToolsTagger.TagLibSharp, true, false, false, true, null, null, decodersViewModel.GetDefault("aiff")));
}
}
}
2 changes: 1 addition & 1 deletion CUETools/frmSettings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2985,7 +2985,7 @@ You can set up foobar2000 to show those values, and see if your music was ripped
<value>6, 6</value>
</data>
<data name="listViewFormats.Size" type="System.Drawing.Size, System.Drawing">
<value>124, 269</value>
<value>124, 272</value>
</data>
<data name="listViewFormats.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
Expand Down

0 comments on commit 955881a

Please sign in to comment.