This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
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
|
|
|
|
|
2016-04-27 12:53:23 +00:00
|
|
|
#include <string>
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
namespace Kernel {
|
|
|
|
class VMManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace AudioCore {
|
|
|
|
|
|
|
|
constexpr int native_sample_rate = 32728; ///< 32kHz
|
|
|
|
|
|
|
|
/// Initialise Audio Core
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
/// Add DSP address spaces to a Process.
|
|
|
|
void AddAddressSpace(Kernel::VMManager& vm_manager);
|
|
|
|
|
2016-04-27 12:53:23 +00:00
|
|
|
/// Select the sink to use based on sink id.
|
|
|
|
void SelectSink(std::string sink_id);
|
|
|
|
|
2016-08-31 15:56:30 +00:00
|
|
|
/// Enable/Disable stretching.
|
|
|
|
void EnableStretching(bool enable);
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
/// Shutdown Audio Core
|
|
|
|
void Shutdown();
|
|
|
|
|
|
|
|
} // namespace
|