Commit Graph

22 Commits

Author SHA1 Message Date
lifning b2c2c93537 experimental dynamic rate control feature in audio component (TBD: merge into SimpleSdl2Audio as an option) 2021-12-11 03:10:39 -08:00
lifning b8cc606bd5 bit more env var stuff 2021-12-11 01:38:34 -08:00
lifning 82217ff117 ffmpeg not mandatory 2021-12-10 15:53:02 -08:00
lifning 2dd8556fe2 fullscreen option, add keyboard component 2021-12-10 02:36:13 -08:00
lifning e7f6c58d0a minor fixes 2021-12-10 00:08:01 -08:00
lifning d74f625c62 add more stderr logging stuff 2021-12-09 23:40:19 -08:00
lif 56729dac15 WIP local save file component 2021-12-07 18:14:00 -08:00
lifning e02a183670 missed a spot 2021-11-09 21:58:51 -08:00
lifning fd2eb03c07 round out a bit more of camera support 2021-11-04 22:54:27 -07:00
lifning bbee2b95dd Merge branch 'liffy/camera' into liffy/sdl2surf 2021-11-04 16:27:18 -07:00
lifning 56e070a30d add some QOL stuff to the SDL2 Simple video components 2021-11-04 15:27:13 -07:00
lifning e95e13df1e add checks for sequencing, fix audio sync in paraLLEl-n64 2021-11-04 11:23:02 -07:00
lifning 41e3352927 more fixes for invalid calls to get_system_av_info 2021-11-03 18:31:40 -07:00
lifning 344d88f26b fix incorrect early uses of get_system_av_info (pre-load_game it is not valid) 2021-11-03 18:11:14 -07:00
lifning a42aa936fe replace SimpleSdl2AudioComponent with the AudioCVT-based resampler 2021-11-03 17:16:38 -07:00
lifning ebea5ffd22 video and audio callback API change:
fn video_refresh(&mut self, data: &[u8], width: c_uint, height: c_uint, pitch: c_uint);
    fn video_refresh_dupe(&mut self, width: c_uint, height: c_uint, pitch: c_uint);
    fn video_refresh_hw(&mut self, width: c_uint, height: c_uint);
    fn audio_sample(&mut self, left: i16, right: i16);
    fn audio_sample_batch(&mut self, stereo_pcm: &[i16]) -> usize;

have been replaced with

    fn video_refresh(&mut self, frame: &VideoFrame);
    fn audio_samples(&mut self, stereo_pcm: &[i16]) -> usize;

where VideoFrame is

    pub enum VideoFrame<'a> {
        XRGB1555 { data: &'a [u16], width: c_uint, height: c_uint, pitch_u16: usize },
        RGB565 { data: &'a [u16], width: c_uint, height: c_uint, pitch_u16: usize },
        XRGB8888 { data: &'a [u32], width: c_uint, height: c_uint, pitch_u32: usize },
        Duplicate { width: c_uint, height: c_uint, pitch_u8: usize, },
        HardwareRender { width: c_uint, height: c_uint, },
    }

use `pub fn VideoFrame::data_pitch_as_bytes(&self) -> Option<(&'a [u8], usize)>` for things that need to access the framebuffer data as a byte array rather than a pixel array.
2021-11-01 00:56:23 -07:00
lifning 41ffd86d1b WIP camera 2021-10-01 21:15:13 -07:00
lifning 71240de38c Support 2D video_refresh in the SDL+GL component
...and alter the behavior of ThreadSleep component a bit.
2021-08-21 20:37:47 -07:00
lifning f954fe9ffb tell parallel-n64 to use glide64 when using the SDL_GL component 2021-08-20 21:47:48 -07:00
lifning 013cc247b9 wip messing around with SDL_GL as a possible hw render provider to later mix in with the existing 2D codepaths 2021-08-20 00:14:41 -07:00
lifning 0501812ae9 Split Sdl2Component into audio/video/input/framelimit 2021-08-18 22:05:19 -07:00
Vivian Lim 5d2692262c Split into two crates in one workspace: ferretro_core & ferretro_components 2021-08-18 14:32:55 -07:00
Renamed from examples/multifunction_emulator.rs (Browse further)