1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00
Files
OpenRCT2/src/openrct2/audio/AudioSource.h
2022-05-23 23:06:41 +01:00

30 lines
925 B
C++

/*****************************************************************************
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include "../common.h"
#include "AudioMixer.h"
namespace OpenRCT2::Audio
{
/**
* Represents a readable source of audio PCM data.
*/
struct IAudioSource
{
virtual ~IAudioSource() = default;
virtual void Release() abstract;
virtual bool IsReleased() const abstract;
virtual uint64_t GetLength() const abstract;
virtual size_t Read(void* dst, uint64_t offset, size_t len) abstract;
};
} // namespace OpenRCT2::Audio