mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-17 00:29:15 +01:00
24 lines
449 B
C++
24 lines
449 B
C++
#pragma once
|
|
#include <cstdint>
|
|
#include <string_view>
|
|
#include <vector>
|
|
|
|
class SplashSoundPlayer {
|
|
public:
|
|
SplashSoundPlayer(std::string_view meta_dir);
|
|
|
|
void Play();
|
|
|
|
virtual ~SplashSoundPlayer() = default;
|
|
|
|
private:
|
|
enum TransitionAudioTarget {
|
|
TV_ONLY,
|
|
DRC_ONLY,
|
|
BOTH
|
|
};
|
|
std::vector<uint8_t> mBuffer;
|
|
TransitionAudioTarget mOutputTarget = BOTH;
|
|
uint32_t mLoopPoint = 0;
|
|
};
|