add crap broken sound support for vqa
This commit is contained in:
@@ -45,7 +45,10 @@ namespace OpenRA.FileFormats
|
||||
byte[] origData;
|
||||
|
||||
// Final frame output
|
||||
int[,] frameData;
|
||||
int[,] frameData;
|
||||
byte[] audioData; // audio for this frame: 22050Hz 16bit mono pcm, uncompressed.
|
||||
|
||||
public byte[] AudioData { get { return audioData; } }
|
||||
|
||||
public VqaReader( Stream stream )
|
||||
{
|
||||
@@ -124,11 +127,14 @@ namespace OpenRA.FileFormats
|
||||
var length = Swap(reader.ReadUInt32());
|
||||
|
||||
switch(type)
|
||||
{
|
||||
case "SND2":
|
||||
// Don't parse sound (yet); skip data
|
||||
reader.ReadBytes((int)length);
|
||||
break;
|
||||
{
|
||||
case "SND2":
|
||||
// Don't parse sound (yet); skip data
|
||||
{
|
||||
var rawAudio = reader.ReadBytes((int)length);
|
||||
audioData = AudLoader.LoadSound(rawAudio);
|
||||
}
|
||||
break;
|
||||
case "VQFR":
|
||||
DecodeVQFR(reader);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user