修订版 | 9067817a7c32fdc51e653afae79305ebdf15042c (tree) |
---|---|
时间 | 2014-12-30 13:04:26 |
作者 | yyagi <yyagi@16f4...> |
Commiter | yyagi |
#34732 rev796の対応を、099cにバックポート。
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/branches/140113(DTXMania098%20with%2028821%20DTXVmode)@797 16f42ceb-6dc6-49c8-ba94-f2d53467949d
@@ -1476,18 +1476,30 @@ Debug.WriteLine("更に再生に失敗: " + Path.GetFileName(this.strファイ | ||
1476 | 1476 | { |
1477 | 1477 | using ( var ws = new WaveStream( strファイル名 ) ) |
1478 | 1478 | { |
1479 | - if ( ws.Format.FormatTag == (WaveFormatTag) 0x6770 || // Ogg Vorbis Mode 2+ | |
1480 | - ws.Format.FormatTag == (WaveFormatTag) 0x6771 ) // Ogg Vorbis Mode 3+ | |
1479 | + if ( ws.Format.FormatTag == ( WaveFormatTag ) 0x6770 || // Ogg Vorbis Mode 2+ | |
1480 | + ws.Format.FormatTag == ( WaveFormatTag ) 0x6771 ) // Ogg Vorbis Mode 3+ | |
1481 | 1481 | { |
1482 | 1482 | Trace.TraceInformation( Path.GetFileName( strファイル名 ) + ": RIFF chunked Vorbis. Decode to raw Wave first, to avoid BASS.DLL troubles" ); |
1483 | - CDStoWAVFileImage.t変換( strファイル名, out byArrWAVファイルイメージ ); | |
1484 | - bファイルにVorbisコンテナが含まれている = true; | |
1483 | + try | |
1484 | + { | |
1485 | + CDStoWAVFileImage.t変換( strファイル名, out byArrWAVファイルイメージ ); | |
1486 | + bファイルにVorbisコンテナが含まれている = true; | |
1487 | + } | |
1488 | + catch | |
1489 | + { | |
1490 | + Trace.TraceWarning( "Warning: " + Path.GetFileName( strファイル名 ) + " : RIFF chunked Vorbisのデコードに失敗しました。" ); | |
1491 | + } | |
1485 | 1492 | } |
1486 | 1493 | } |
1487 | 1494 | } |
1488 | - catch | |
1495 | + catch ( InvalidDataException ) | |
1496 | + { | |
1497 | + // DirectShowのデコードに失敗したら、次はACMでのデコードを試すことになるため、ここではエラーログを出さない。 | |
1498 | + // Trace.TraceWarning( "Warning: " + Path.GetFileName( strファイル名 ) + " : デコードに失敗しました。" ); | |
1499 | + } | |
1500 | + catch ( Exception e ) | |
1489 | 1501 | { |
1490 | - Trace.TraceWarning( "Error: " + Path.GetFileName( strファイル名 ) + " : RIFF chunked Vorbisのデコードに失敗しました。" ); | |
1502 | + Trace.TraceWarning( "Warning: " + Path.GetFileName( strファイル名 ) + " : 読み込みに失敗しました。" ); | |
1491 | 1503 | } |
1492 | 1504 | #endregion |
1493 | 1505 |