From 723b985e07586d36a6634802b744f0a764262388 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 30 Apr 2015 21:09:43 +0400 Subject: [PATCH] extract Ogg stream from 'Og'-tagged WAV files. --- MainWindow.xaml.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 3a19e686..7245a7c5 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -810,6 +810,15 @@ namespace GARbro.GUI throw FormatCatalog.Instance.LastError; return; } + if (sound is WaveInput && 0x674f == sound.Format.FormatTag) + { + var ogg = AudioFormat.Read (sound); + if (null != ogg) + { + sound.Dispose(); + sound = ogg; + } + } if (m_audio != null) {