Object oriented sound loader approach

Reshapes the ISoundLoader interface and
adds a new ISoundFormat interface to allow streaming in the near future
This commit is contained in:
teees
2016-02-02 10:18:50 +01:00
committed by Paul Chote
parent c32bf9f8f7
commit 0193ee5b3c
7 changed files with 180 additions and 151 deletions

View File

@@ -44,9 +44,9 @@ namespace OpenRA.GameRules
using (var s = filesystem.Open(Filename))
{
if (Filename.ToLowerInvariant().EndsWith("wav"))
Length = (int)WavLoader.WaveLength(s);
Length = (int)WavReader.WaveLength(s);
else
Length = (int)AudLoader.SoundLength(s);
Length = (int)AudReader.SoundLength(s);
}
}
}