Questions tagged [libretro]
10 questions
2
votes
2 answers
How to convert an array of int16 sound samples to a byte array to use in MonoGame/XNA
I'm writing a libretro frontend in C#/MonoGame, I've managed to get a crude (but working) video blitter but now I'm struggling with sound.
From the API:
/* Renders multiple audio frames in one go.
*
* One frame is defined as a sample of left and…

Radius
- 350
- 3
- 14
2
votes
0 answers
I've got audio samples; how to play them correctly with the SDL?
I'm in the process of writing a very simple frontend for the libretro cores, and I'm attacking the audio part, the hardest (I never ever dealt with anything sound-related before, so it's very possible that I got it totally wrong).
The way it works,…

Maël Nison
- 7,055
- 7
- 46
- 77
2
votes
0 answers
Jerky sound from libretro using libao
I'm trying to create a tiny libretro frontend in C++ using SFML for the graphics, libao for the sound and some parts of the Qt framework.
Here is the logic : using SFML's built-in clock system, I refresh at every frame the libretro core, at a given…

natinusala
- 596
- 5
- 21
1
vote
1 answer
Having trouble marshalling an array of structs from c to c#
I'm trying to marshal an array of c structs into C# (Using Unity) but, no matter the method I use, I always get an exception or a crash.
I'm loading dlls (libretro cores) that conform (or should...) to the Libretro API, the c/c++ side is not…

Skurdt
- 24
- 3
1
vote
1 answer
SDL2 access render framebuffer
I am trying to access the framebuffer of an SDL_Renderer as an array of Uint32* pixel to pass to Libretro's display function.
I created this minimal example to show two methods of accessing SDL's framebuffer that I have seen online, neither of which…

Morgoth
- 4,935
- 8
- 40
- 66
1
vote
0 answers
make keyboard accessible for client of remote server (Raspberry pi, php)
So here is what I wanted to do. I have an Apache2 server up and running on my raspberry pi 3, which is currently serving as a webradio using php commands and mpd/mpc. The raspberry is also connected via HDMI to a display.
I now like to have another…

Flo O
- 11
- 1
0
votes
0 answers
Retroarch keeps crashing when i launch a GameCube game (Seg fault - Core dumped)
Every time i try to launch a GameCube game, I get this error : Segmentation fault(core dumped)
What can i do to fix this ?
Additional info :
I am on Ubuntu 22.04 running the latest version of Retroarch, which i built myself.
Here is the output i got…

Anthony
- 97
- 5
0
votes
0 answers
Unable to transfer files to the XBox One in Dev Mode using either the XBox Portal or DurangoFTP for RetroArch
I bought the Dev Mode license for the Xbox One last week in the hopes of running RetroArch initially for the Amiga emulator. However I'm running into serious problems before I can even really start. I've tried the RetroArch forums and Discord but…

Colin
- 101
- 2
0
votes
1 answer
How to trigger creation of savefile
I'm trying to create a libretro core. It will be a standalone game, so I'm setting RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME to true. The documentation suggests that retro_get_memory_* can be used to have data saved without needing to explicitly query…

stewbasic
- 831
- 7
- 21
0
votes
1 answer
Get filepath of library
I am building a library for the Libretro framework, and I want to get the path of my library so that I can open a file in the same directory as my library.so file.
I followed the instructions at How to implement readlink to find the path, but that…

Morgoth
- 4,935
- 8
- 40
- 66