Commit Graph

465 Commits

Author SHA1 Message Date
meepingsnesroms
afad28958a More ARM stuff, allow read/write safety check disableing 2018-10-27 10:46:30 -07:00
meepingsnesroms
acd5e9afd5 Almost have ARM core working 2018-10-27 02:21:52 -07:00
meepingsnesroms
d88b508f69 Most of ARM specific CPU core 2018-10-27 01:02:38 -07:00
meepingsnesroms
33d07a410a Reduce musashi references, prepare to add ARM optimized 68k emulator 2018-10-26 22:47:13 -07:00
meepingsnesroms
343705b12e Fix 2 broken things 2018-10-26 20:59:05 -07:00
meepingsnesroms
e4832cc757 Nitpicks and tiny speed inprovement 2018-10-26 18:05:02 -07:00
meepingsnesroms
7f55aaf80b Some misc updates 2018-10-26 14:18:24 -07:00
meepingsnesroms
03d7ea2bcf The audio still sounds lower frequency, but the correct samples are playing
At this point its likely the speaker just doset squeal the same way as the Palm  and never will since its not a peizo buzzer.
2018-10-26 13:02:44 -07:00
meepingsnesroms
8f112ca0be Emulate inductor, its still not tuned properly 2018-10-26 10:16:27 -07:00
meepingsnesroms
cf681eb246 I really wanted to just be lazy, but it looks like I have to emulate the inductor for proper squealing 2018-10-26 08:39:42 -07:00
meepingsnesroms
74bc0b15f8 Change PLL disable method 2018-10-25 16:48:20 -07:00
meepingsnesroms
f622aa8695 Make the audio copy threaded 2018-10-25 14:03:18 -07:00
meepingsnesroms
14f2bbf4de More audio info 2018-10-24 19:57:04 -07:00
meepingsnesroms
91d6861409 Audio is a little better, low and high options in settings dont seem to work though. 2018-10-20 17:32:55 -07:00
meepingsnesroms
2e73303419 Fix how duty cycle is used 2018-10-20 15:55:31 -07:00
meepingsnesroms
0a9a7ae3a1 Prevent audio from overwriting previous sample if a second sample is played after 2018-10-20 09:29:30 -07:00
meepingsnesroms
4af9d407ed Make PWM period equal to PWMP1 + 2
Still a clicky mess
2018-10-19 15:40:09 -07:00
meepingsnesroms
891daf66be Hopefully fix sample overflow
When a sample was written on the first set of SYSCLKs of the first CLK32 of a frame and PWM1 was waiting for a sample it would subtract the cycles from 0 then when cast to unsigned would overflow the max number of samples.
2018-10-19 14:13:38 -07:00
meepingsnesroms
65c1329543 Change the way FIFOAV works 2018-10-19 12:41:02 -07:00
meepingsnesroms
a769afe99b Reset the PWM1 variables on boot
Also use newFrameReady() instead of double buffering for threads, less useless copying.
2018-10-19 11:48:19 -07:00
meepingsnesroms
4ce4beef6d Finish for today 2018-10-18 18:21:37 -07:00
meepingsnesroms
c3bf60dfc4 Cleanups 2018-10-18 18:04:44 -07:00
meepingsnesroms
9799b6ecc4 Switch to libretro-common 2018-10-18 17:50:41 -07:00
meepingsnesroms
8de8a3ecdd Fix half speed bug 2018-10-18 16:46:12 -07:00
meepingsnesroms
ac74668562 Fix libretro joystick 2018-10-18 16:09:06 -07:00
meepingsnesroms
1ca70e0719 More cleanups and a audio safety check 2018-10-18 12:28:38 -07:00
meepingsnesroms
06f22b714a Audio can now run in CLK32 mode and play past samples 2018-10-18 12:03:58 -07:00
meepingsnesroms
3a95f471e3 Clean up messy code 2018-10-18 11:51:27 -07:00
meepingsnesroms
5fc429ff14 Mostly working audio, better than POSE! 2018-10-18 11:35:09 -07:00
meepingsnesroms
0f37324265 Prepare to add FIFO queue back, audio is working normaly for single writes now 2018-10-18 10:24:24 -07:00
meepingsnesroms
c4078bf4a5 Audio always seems to work on touch down in RetroArch, just need to add FIFO back 2018-10-16 18:04:45 -07:00
meepingsnesroms
d108d33c64 Well the audio is shitty and the FIFO is missing but buttons sometimes make noise 2018-10-16 17:51:30 -07:00
meepingsnesroms
42f5a7d8e5 Add print audio buffer, audio still broken 2018-10-16 17:33:46 -07:00
meepingsnesroms
ed5f2549e7 Add a fixed frame timer for audio 2018-10-16 16:45:21 -07:00
meepingsnesroms
22fb689097 Add blank instance of blip_buf 2018-10-16 15:44:46 -07:00
meepingsnesroms
13a9efee6e Remove last of old audio code 2018-10-16 11:36:31 -07:00
meepingsnesroms
204c3f9a44 Remove broken PWM1 implementation
Going to try again using blip_buf and no FIFO
2018-10-16 11:29:18 -07:00
meepingsnesroms
66de6ea791 Fix buffer overflow from audio, prevented the emulator from starting in release mode 2018-10-15 15:27:20 -07:00
meepingsnesroms
d503b49e53 Fix memory leak 2018-10-15 14:47:24 -07:00
meepingsnesroms
f227bdbc4e Make 8Bpp mode output the correct colors 2018-10-15 14:36:22 -07:00
meepingsnesroms
1e8831cf9a Remove excess ifs from CPU runloop 2018-10-13 09:28:48 -07:00
meepingsnesroms
d08d4a45bc PWM1 can now be used by SYSCLK and CLK32
Although its off right now because the glitchy audio needs to be reimplemented.
2018-10-11 13:17:56 -07:00
meepingsnesroms
f77344dae2 SYSCLKs are now separeate from CLK32 2018-10-11 10:55:47 -07:00
meepingsnesroms
508cab0b41 Prepare timers for switch to SYSCLK accuracy 2018-10-11 10:16:01 -07:00
meepingsnesroms
8944e0c954 Update src/emulator.h 2018-10-11 09:33:12 -07:00
meepingsnesroms
e46090ea7a Use cute little iOS style switches in RetroArch core options 2018-10-11 08:55:54 -07:00
meepingsnesroms
a14c7c5e84 Update libretro port
Compiles again on mac so testing works again.
2018-10-10 17:24:09 -07:00
meepingsnesroms
47124bda2e Use correct sound buffer size everywhere 2018-10-10 15:13:11 -07:00
meepingsnesroms
fe361ca97c Remove empty function 2018-10-10 08:46:23 -07:00
meepingsnesroms
86dfa09fe1 Put back the desired changes from the blip_buf branch 2018-10-09 21:11:54 -07:00