F.E.I.S/tests/more_precise_music.hpp

17 lines
418 B
C++
Raw Normal View History

2022-02-16 01:52:32 +01:00
#include <filesystem>
2022-02-28 22:53:17 +01:00
#include <array>
2022-02-16 01:52:32 +01:00
#include <SFML/Audio.hpp>
#include "AL/al.h"
#include "AL/alext.h"
struct MorePreciseMusic : sf::Music {
MorePreciseMusic(const std::filesystem::path& path);
2022-02-28 22:53:17 +01:00
std::array<sf::Time, 2> alSecOffsetLatencySoft() const;
sf::Time getPrecisePlayingOffset() const;
sf::Time lag = sf::Time::Zero;
void play();
2022-02-16 01:52:32 +01:00
protected:
2022-02-28 22:53:17 +01:00
LPALGETSOURCEDVSOFT alGetSourcedvSOFT;
2022-02-16 01:52:32 +01:00
};