Former-commit-id: cb3155ca088d24c4515a7e773454010f3e6df1e7 [formerly d9803b6bffbfc1c8d490dd9ae451a363faaaedfc] [formerly eef64e8fdcd1383970286e0756d31383afd0e756 [formerly 7431388ed48a2c516f305834f8f8fed0ad3e56b8]] Former-commit-id: fee589f9cfc45c9a3387e41026f372047886d381 [formerly 9742d88c55031414cba3b54403a61909a9f3c85e] Former-commit-id: f8f6b903238a7cad2946e75d497c22a5be9117c0
33 lines
805 B
C++
33 lines
805 B
C++
// Copyright (C) 2015 Jérôme Leclercq
|
|
// This file is part of the "Nazara Engine - Audio module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_SOUNDSTREAM_HPP
|
|
#define NAZARA_SOUNDSTREAM_HPP
|
|
|
|
#include <Nazara/Prerequesites.hpp>
|
|
#include <Nazara/Audio/Config.hpp>
|
|
#include <Nazara/Audio/Enums.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
class NAZARA_AUDIO_API SoundStream
|
|
{
|
|
public:
|
|
SoundStream() = default;
|
|
virtual ~SoundStream();
|
|
|
|
virtual UInt32 GetDuration() const = 0;
|
|
virtual AudioFormat GetFormat() const = 0;
|
|
virtual UInt64 GetSampleCount() const = 0;
|
|
virtual UInt32 GetSampleRate() const = 0;
|
|
|
|
virtual UInt64 Read(void* buffer, UInt64 sampleCount) = 0;
|
|
virtual void Seek(UInt64 offset) = 0;
|
|
};
|
|
}
|
|
|
|
#endif // NAZARA_SOUNDSTREAM_HPP
|