Commit 7953d8a4 authored by James's avatar James
Browse files

Point to correct native sampling rate to ensure consistency

parent df3bea2e
......@@ -3,14 +3,15 @@
// Refer to the license.txt file included.
#include <glad/glad.h>
#include <video_core/renderer_opengl/gl_state.h>
#include <libretro.h>
#include "audio_core/audio_types.h"
#include "citra_libretro/citra_libretro.h"
#include "citra_libretro/environment.h"
#include "citra_libretro/input/input_factory.h"
#include "core/3ds.h"
#include "core/settings.h"
#include "libretro.h"
#include "video_core/renderer_opengl/gl_state.h"
/// LibRetro expects a "default" GL state.
void ResetGLState() {
......@@ -186,7 +187,7 @@ void EmuWindow_LibRetro::Prepare(bool hasOGL) {
// Update Libretro with our status
struct retro_system_av_info info {};
info.timing.fps = 60.0;
info.timing.sample_rate = 32728;
info.timing.sample_rate = AudioCore::native_sample_rate;
info.geometry.aspect_ratio = (float)baseX / (float)baseY;
info.geometry.base_width = baseX;
info.geometry.base_height = baseY;
......
......@@ -3,8 +3,9 @@
// Refer to the license.txt file included.
#include <cstring>
#include <core/settings.h>
#include "core/settings.h"
#include "audio_core/audio_types.h"
#include "audio_core/libretro_sink.h"
#include "common/scm_rev.h"
#include "environment.h"
......@@ -145,7 +146,7 @@ void retro_set_input_state(retro_input_state_t cb) {
void retro_get_system_av_info(struct retro_system_av_info* info) {
// These are placeholders until we get control.
info->timing.fps = 60.0;
info->timing.sample_rate = 32728;
info->timing.sample_rate = AudioCore::native_sample_rate;
info->geometry.base_width = 400;
info->geometry.base_height = 480;
info->geometry.max_width = 400 * 10;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment