1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Get moved audio code linking

This commit is contained in:
Ted John
2017-03-29 17:46:02 +01:00
committed by Gymnasiast
parent d206d181f2
commit e426c70bbc
9 changed files with 72 additions and 40 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRCT2 { namespace Audio
* An audio source where raw PCM data is initially loaded into RAM from
* a file and then streamed.
*/
class MemoryAudioSource final : public IAudioSource
class MemoryAudioSource final : public ISDLAudioSource
{
private:
AudioFormat _format = { 0 };
@@ -43,12 +43,12 @@ namespace OpenRCT2 { namespace Audio
Unload();
}
uint64 GetLength() override
uint64 GetLength() const override
{
return _length;
}
AudioFormat GetFormat() override
AudioFormat GetFormat() const override
{
return _format;
}