Add support for moving ISounds after creation.

This commit is contained in:
Paul Chote
2017-02-01 20:41:46 +00:00
parent 61050e77f6
commit a880562b4b
2 changed files with 6 additions and 0 deletions

View File

@@ -46,5 +46,6 @@ namespace OpenRA
float Volume { get; set; }
float SeekPosition { get; }
bool Playing { get; }
void SetPosition(WPos pos);
}
}

View File

@@ -405,5 +405,10 @@ namespace OpenRA.Platforms.Default
return state == AL10.AL_PLAYING;
}
}
public void SetPosition(WPos pos)
{
AL10.alSource3f(Source, AL10.AL_POSITION, pos.X, pos.Y, pos.Z);
}
}
}