aboutsummaryrefslogtreecommitdiff
path: root/src/SPU.cpp
Commit message (Collapse)AuthorAge
* Introduce `Platform::Log` (#1640)Jesse Talavera-Greenberg2023-03-23
| | | | | | | | | | | | | * Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
* merge local_wifi (#1516)Arisotura2022-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt at betterer wifi * add preliminary sync mechanism * fix gaps in wifi implementation * move local-MP comm to its own module instead of cramping Platform.cpp * remove some stupid cruft * as you wish, Sorer (starting work on shared-memory system) * shared-memory IPC that actually works (albeit Windows-only for now) * shut up logging from NULL writes on ARM7 (ffs Nintendo learn to code) * get this somewhat good * leave client sync mode when host deauths. makes download play actually work. * start implementing MP-comm error handling * * add MP-reply error counters * feeble attempt at fixing slowdown/desync/etc problems * somewhat better exchange/sync method * * when entering power-saving mode, be sure to finish transferring the current frame first * fix misc bug due to old cruft leftover makes for a more stable connection * remove a bunch of cruft * set wifi time interval to 34 cycles instead of 33. games seem sensitive to the general timing of wifi vs the rest of the system, and this seems to make things run better, atleast until I rewrite this to use a proper scheduler. * more graceful handling of disconnects * deal with FIFO overflow more gracefully * BAHAHAHAHAHAHAHAHHHH THE SNEAKY BASTARDS so, when the DS receives a beacon with the right BSSID that beacon's timestamp is copied to USCOUNTER * attempt at making the connection process smoother for weird games * * begin adding POWCNT2, only applies to wifi for now * begin work on wifi scheduler * implement the shitty timers * add the RF wakeup thing * begin work on receiving frames. for now it can just receive melonAP beacons, but hey, it's a start. * add enough TX functionality that online wifi is a possibility again. * there are problems with this scheduler thing. committing it anyway * kind of a rollback... we're gonna work out a compromise on this, I guess * don't transmit shit if RXCNT.bit15 isn't set * move RX-finish to its own function. more accurate filtering. implement RXFILTER. * remove some cruft * fix some of the shittiness when trying to connect more than two players * fix some more shittiness * fix more wifi shittiness (mainly don't try to receive shit while sending a frame) * run wifi every 8µs. improves performance. * fix IRQ14/IRQ15 * make this work under Linux * Make it work on macOS, for now using a custom sem_timedwait implementation. If anyone knows anything about mach ports and have an idea for how to make this work using mach IPC, please do let me know. * 25ms seems like a good timeout * begin work on proper multiplayer UI shito. for now, determine a global instance ID, and derivate the system MAC from it. remove 'randomize MAC' option. * finish removing RandomizeMAC * lay groundwork for instance-unique config * work some on the UI... make it not labelled Fart * more UI work: make it explicit that some things are instance-unique * separate firmware files for multiplayer instances * make instances save to different save files, too * more UI work, make things somewhat less shitty * lay base for the multiplayer settings dialog * actually hook up most of that dialog * actually implement the fun audio settings * ensure all the wifi shit is properly savestated and reset. properly update timings for the wifi region when wifi is disabled. * add more fun labels * * ignore WEP frames if WEP is off * implement RX_LEN_CROP * fake enough of WEP processing to make Inazuma Eleven work * * do not copy more ROM banner data than actually needed * avoid trying to read out of bounds if the banner offset is bad * Fix oversight with the preferences action causing the build to fail on macOS Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
* update copyright headersArisotura2022-01-09
|
* SPU: block reads from ARM7 BIOS region. fixes #1267 (and prolly whatever ↵Arisotura2021-11-25
| | | | other stupid game tries to play sound from NULL)
* SPU: correctly read negative ADPCM initial values. fixes #1261Arisotura2021-11-23
|
* finally decouple Config from the core. baahhahahahahArisotura2021-11-18
|
* farkNadia Holmquist Pedersen2021-08-17
|
* SPU: Do clamping after applying SOUNDBIASNadia Holmquist Pedersen2021-08-17
|
* SPU: Emulate SOUNDBIAS and 10-bit degradeNadia Holmquist Pedersen2021-08-17
|
* Audio interpolation (#1176)Arisotura2021-08-08
| | | add audio interpolation (emulation improvement)
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* make audio output thread safe(r?)RSDuck2020-11-15
|
* SPU: work with scalars instead of arraysRSDuck2020-10-31
|
* SPU: don't process channels with len<4Arisotura2020-08-19
|
* SPU: delay channel start until whenever it can actually start. fixes maxmod ↵Arisotura2020-07-23
| | | | interpolated mode.
* make it able to switch between DS and DSi modesArisotura2020-06-01
|
* Merge remote-tracking branch 'remotes/origin/master' into melonDSiArisotura2020-05-30
|\
| * reimplement StopArisotura2020-05-20
| |
* | Merge commit '4b57416552ec2fa95216e2b044559f215723bf70' into melonDSiArisotura2020-05-30
|\|
| * update copyright yearsArisotura2020-02-14
| |
* | begin renovating melonDSiArisotura2020-05-30
|\|
| * deal with SPU FIFO overflow in a more pleasant mannerArisotura2019-09-04
| |
| * see, Arisotura, was it that hard?Arisotura2019-09-04
| |
| * more fixes to audio outputArisotura2019-09-01
| | | | | | | | maybe by 2034 we'll finally get that shit going
| * * new FPS limiterArisotura2019-08-29
| | | | | | | | | | | | * new audio output/sync method about fucking time
| * my bad.Arisotura2019-08-18
| |
| * start botching the FPS limiterArisotura2019-07-12
| | | | | | | | results in shitty audio because it's overflowing the buffer
* | * AES-CCM decryptArisotura2019-07-02
|/ | | | * fix a bunch of bugs
* derping aroundArisotura2019-05-14
|
* also, update copyright nameArisotura2019-01-22
|
* libui/GTK: remember directory in which the latest loaded ROM was, point file ↵StapleButter2018-12-14
| | | | picker to it. behavior under Windows will likely stay unchanged as the Windows file picker already does that.
* SPU:StapleButter2018-12-14
| | | | | * support channel repeat mode 3, behaves same as mode 1 (loops) * always clear channel buffers, so if channels 0-7 use format 3, they don't output old data over and over again (fixes #281)
* start devolving things.StapleButter2018-12-08
| | | | | | also implement proper DMA timings. will not build. don't try.
* begin work on general timing renovation. way shitty because it behaves as if ↵StapleButter2018-12-04
| | | | caches were off, so everything will be slow as shit.
* SPU doneStapleButter2018-10-18
|
* fixor copyright years.StapleButter2018-09-15
|
* audio: change output rate to 47340Hz, add resampler with small margin to ↵StapleButter2017-12-11
| | | | | | elimiate pops/clicks due to output rate fluctuation output rate is picked such that 1024 samples at that rate equal exactly 710 samples at the SPU's output rate
* (finally) fix soundStapleButter2017-11-11
| | | | | | * reset capture position when starting capture * reorder channel/capture handling * implement FIFO for channel and capture
* add support for SPI shutdown, btwStapleButter2017-09-21
|
* misc. thingsStapleButter2017-05-09
|
* windows!StapleButter2017-04-09
|
* * sound capture from left/right mixersStapleButter2017-04-08
| | | | * support for appropriate output modes
* * stub more wifi crapStapleButter2017-04-07
| | | | | * louder sound * misc fixes
* * PCM8, PCM16, ADPCM, white noiseStapleButter2017-04-07
| | | | * volume, volume div, panning, master volume
* preliminary audio. only supports PSG (and handles all channels as such). ↵StapleButter2017-04-06
| | | | drops out every once in a while.
* start SPU workStapleButter2017-04-06
|
* * bump version numberStapleButter2017-04-04
* feed system time into RTC * start laying base for sound