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
libretro-handy
Commits
7bf14e64
Unverified
Commit
7bf14e64
authored
Nov 22, 2019
by
hizzlekizzle
Committed by
GitHub
Nov 22, 2019
Browse files
Merge pull request #65 from tryal-star/sample_rate
support higher sample rates
parents
b41f9559
61ca3410
Changes
1
Hide whitespace changes
Inline
Side-by-side
libretro/libretro.cpp
View file @
7bf14e64
...
...
@@ -182,7 +182,15 @@ static UBYTE* lynx_display_callback(ULONG objref)
{
int
f
=
gAudioBufferPointer
/
4
;
// /1 - 8 bit mono, /2 8 bit stereo, /4 16 bit stereo
lynx_sound_stream_update
(
soundBuffer
,
gAudioBufferPointer
);
audio_batch_cb
((
const
int16_t
*
)
soundBuffer
,
f
);
int
audio_total
=
0
;
while
(
f
>
0
)
{
audio_batch_cb
((
const
int16_t
*
)
soundBuffer
+
audio_total
,
f
<
1024
?
f
:
1024
);
f
-=
1024
;
audio_total
+=
1024
*
2
;
}
}
newFrame
=
true
;
...
...
@@ -352,7 +360,7 @@ void retro_get_system_info(struct retro_system_info *info)
void
retro_get_system_av_info
(
struct
retro_system_av_info
*
info
)
{
struct
retro_game_geometry
geom
=
{
lynx_width
,
lynx_height
,
160
,
160
,
(
float
)
lynx_width
/
(
float
)
lynx_height
};
struct
retro_system_timing
timing
=
{
75.0
,
48000.0
};
struct
retro_system_timing
timing
=
{
75.0
,
(
float
)
HANDY_AUDIO_SAMPLE_FREQ
};
memset
(
info
,
0
,
sizeof
(
*
info
));
info
->
geometry
=
geom
;
...
...
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