F.E.I.S/tests/more_precise_music.hpp
2022-02-28 23:09:16 +01:00

17 lines
418 B
C++

#include <filesystem>
#include <array>
#include <SFML/Audio.hpp>
#include "AL/al.h"
#include "AL/alext.h"
struct MorePreciseMusic : sf::Music {
MorePreciseMusic(const std::filesystem::path& path);
std::array<sf::Time, 2> alSecOffsetLatencySoft() const;
sf::Time getPrecisePlayingOffset() const;
sf::Time lag = sf::Time::Zero;
void play();
protected:
LPALGETSOURCEDVSOFT alGetSourcedvSOFT;
};