Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Citra2018
Commits
7953d8a4
Commit
7953d8a4
authored
Mar 14, 2018
by
James
Browse files
Point to correct native sampling rate to ensure consistency
parent
df3bea2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/citra_libretro/emu_window/libretro_window.cpp
View file @
7953d8a4
...
...
@@ -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
;
...
...
src/citra_libretro/environment.cpp
View file @
7953d8a4
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment