mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-09 12:13:40 -04:00
* libretro core * Bringing citra libretro implementation over * libretro: hook up vulkan renderer * libretro: github actions * libretro: gyro * libretro: core options v2 * libretro: on ios turn off shader jit if unavailable * moltenvk 1.3.0 introduces 8-bit indexes but allocates 16-bit for metal; this ends up allocating stream buffer * 2 = 132MiB. Instead, just use 16-bit indexes. (This will be necessary for standalone when bumping moltenvk version.) * libretro core: address review feedback * libretro: microphone support * cmake: Add ENABLE_ROOM_STANDALONE to list of incompatible libretro flags * libretro: proper initial geometry * libretro: fix software renderer * libretro: address review feedback * .github/libretro.yml: Pin macOS runners at macOS 26 * ci: Remove explicit selection of Xcode 16.0 * .github/libretro.yml: remove unnecessary windows builder apt commands * .github/libretro.yml: bump min macos version to 11.0 * ci: Re-enable CI jobs for all libretro cores This is under the condition that we don't introduce build cache for these builds --------- Co-authored-by: OpenSauce04 <opensauce04@gmail.com> Co-authored-by: PabloMK7 <hackyglitch2@gmail.com>
36 lines
1,017 B
C++
36 lines
1,017 B
C++
// Copyright Citra Emulator Project / Azahar Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include "audio_core/input.h"
|
|
|
|
namespace AudioCore {
|
|
|
|
class LibRetroInput final : public Input {
|
|
public:
|
|
LibRetroInput();
|
|
~LibRetroInput() override;
|
|
|
|
void StartSampling(const InputParameters& params) override;
|
|
void StopSampling() override;
|
|
bool IsSampling() override;
|
|
void AdjustSampleRate(u32 sample_rate) override;
|
|
Samples Read() override;
|
|
|
|
/// Called from main thread (retro_run) to read samples from the frontend
|
|
/// and store them in the thread-safe buffer for Read() to consume.
|
|
void PollMicrophone();
|
|
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl;
|
|
};
|
|
|
|
/// Returns the global LibRetroInput instance, or nullptr if not initialized.
|
|
/// This is used by citra_libretro.cpp to poll the microphone from the main thread.
|
|
LibRetroInput* GetLibRetroInput();
|
|
|
|
} // namespace AudioCore
|