|
|
@ -12,10 +12,6 @@
|
|
|
|
#include "audio_core/audio_event.h"
|
|
|
|
#include "audio_core/audio_event.h"
|
|
|
|
#include "core/hle/service/audio/errors.h"
|
|
|
|
#include "core/hle/service/audio/errors.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
|
|
|
class System;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace AudioCore {
|
|
|
|
namespace AudioCore {
|
|
|
|
|
|
|
|
|
|
|
|
namespace AudioOut {
|
|
|
|
namespace AudioOut {
|
|
|
@ -43,7 +39,7 @@ class AudioManager {
|
|
|
|
using BufferEventFunc = std::function<void()>;
|
|
|
|
using BufferEventFunc = std::function<void()>;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit AudioManager(Core::System& system);
|
|
|
|
explicit AudioManager();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Shutdown the audio manager.
|
|
|
|
* Shutdown the audio manager.
|
|
|
@ -80,9 +76,7 @@ private:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void ThreadFunc();
|
|
|
|
void ThreadFunc();
|
|
|
|
|
|
|
|
|
|
|
|
/// Core system
|
|
|
|
/// Have sessions started playing?
|
|
|
|
Core::System& system;
|
|
|
|
|
|
|
|
/// Have sessions started palying?
|
|
|
|
|
|
|
|
bool sessions_started{};
|
|
|
|
bool sessions_started{};
|
|
|
|
/// Is the main thread running?
|
|
|
|
/// Is the main thread running?
|
|
|
|
std::atomic<bool> running{};
|
|
|
|
std::atomic<bool> running{};
|
|
|
|