2016-02-21 13:13:52 +00:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-04-30 21:36:00 -07:00
|
|
|
#include <array>
|
2016-04-27 13:53:23 +01:00
|
|
|
#include <string>
|
2017-04-30 21:36:00 -07:00
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "core/memory.h"
|
2016-02-21 13:13:52 +00:00
|
|
|
|
|
|
|
namespace AudioCore {
|
|
|
|
|
2016-09-18 09:38:01 +09:00
|
|
|
constexpr int native_sample_rate = 32728; ///< 32kHz
|
2016-02-21 13:13:52 +00:00
|
|
|
|
|
|
|
/// Initialise Audio Core
|
|
|
|
void Init();
|
|
|
|
|
2017-04-30 21:36:00 -07:00
|
|
|
/// Returns a reference to the array backing DSP memory
|
|
|
|
std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory();
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2016-04-27 13:53:23 +01:00
|
|
|
/// Select the sink to use based on sink id.
|
|
|
|
void SelectSink(std::string sink_id);
|
|
|
|
|
2016-08-31 16:56:30 +01:00
|
|
|
/// Enable/Disable stretching.
|
|
|
|
void EnableStretching(bool enable);
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
/// Shutdown Audio Core
|
|
|
|
void Shutdown();
|
|
|
|
|
2017-04-30 21:36:00 -07:00
|
|
|
} // namespace AudioCore
|