Commit Graph

2446 Commits

Author SHA1 Message Date
Christoph "baka0815" Schwerdtfeger 001a767ab7 CHD: swap bytes of CHDv5+ audio tracks
Thanks @flyinghead
See https://github.com/libretro/reicast-emulator/pull/370
2018-11-03 19:29:55 +01:00
Christoph "baka0815" Schwerdtfeger 161e84598d Respect the offset of the padding
The StartHunk logic was flawed and while working with CHD files before v5 didn't work for v5 (and above).
The extraframes logic did work in some cases (read 3 track CHDv5) but didn't work in all cases and was merely a hack in retrospective.

Thanks to the comment of @flyinghead (see also b6c2508922 (diff-cb507bb17d74342aa45b6e4d10d607af)) the logic is now correct and works for v4 and v5 files.
2018-11-03 19:24:53 +01:00
Christoph "baka0815" Schwerdtfeger 3a76b30188 Merge branch 'baka/chdv5_2' of https://github.com/reicast/reicast-emulator into baka/chdv5_2 2018-10-30 21:28:17 +01:00
Christoph "baka0815" Schwerdtfeger 6f358ebf8f CHD: Only pad when version >= 5 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 98c1e7253c CHD: Use the hunk caching
We didn't remember the last hunk and always read again.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 4bb9507695 CHD: Reworked the extra frame handling
This way Sonic 2, F355, Crazy Taxi, Rayman 2 and Daytona USA work.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger eca88de501 CHD: If uncompressed we don't need to check compression 2018-10-30 21:27:25 +01:00
Christoph 'baka0815' Schwerdtfeger c5f21ab9a3 CHD: Enable FLAC on Windows 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 68d2641672 Trying to break-fix Windows using __inline instead of inline 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 2862926f2c CHD/FLAC: Use local deps for FLAC and enable on Android
Using locally installed FLAC libs, so no more need for libflac-dev.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger fd0d7aedeb CHD: Fixed the build for Android
CFLAGS were set in the wrong place and the name of the DEF was wrong too -_-°
2018-10-30 21:27:25 +01:00
Christoph 'baka0815' Schwerdtfeger a008a736d8 CHD/FLAC: surround flac.c with #ifdef 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 5e16412629 Fix includes 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 0fa4900af4 CHD: Enable FLAC via library (on Linux builds) 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 50bcc8cd46 CHD: Enable support for LZMA (CDLZ) compression 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 4691418689 CHD: Check for extra frames
If the frame count is not dividable by 4, there are extra frames added to keep a padding.
This is true for F355 (450 frames -> 2 extra frames) and others.

Also move CD_TRACK_PADDING to chd.cpp to work around problems with including from C and C++.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger d24b68f592 CHD: read additional track types
Also don't print "Unable to find metadata" as it's mostly not true (we reach this part after the last track)
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 2de15899f2 CHD: Wrap FLAC and LZMA with defines
Make CHDv5 generally work without FLAC and LZMA decoding possibilities so there is currently no need for extra deps.
2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 401d931b96 CHD: Imported 96a2ce8a5b 2018-10-30 21:27:25 +01:00
Christoph "baka0815" Schwerdtfeger 46986f3caa CHD: Only pad when version >= 5 2018-10-30 20:38:19 +01:00
David Miller 75d319ea3c removed pragma once from arm-new.h, inline file 2018-10-28 15:10:53 -04:00
David Miller c9abcf6cbb Merge branch 'master' of https://github.com/reicast/reicast-emulator 2018-10-28 11:46:55 -04:00
David Miller a8c09197a3 os_MakeExecutable() using sizeof(sz) 2018-10-28 11:45:35 -04:00
David Miller b907e3ff4d
Merge pull request #1441 from ccawley2011/no-evdev
Fix compilation on systems without evdev
2018-10-28 11:40:40 -04:00
Flyinghead cdb5cf662b Initialize PVR function pointer to non-null 2018-10-28 11:33:35 -04:00
Flyinghead 0cfd8f5494 Sprites face culling is reversed.
Fixes South Park Rally and Wacky Races invisible menus.
2018-10-28 09:43:48 -04:00
David Miller 45bf5e51b1
Merge pull request #1443 from janisozaur/patch-1
Fix mismatched new/delete operators
2018-10-28 09:17:01 -04:00
David Miller 904bb19def
Merge pull request #1444 from janisozaur/include-guards
Add missing include guards
2018-10-28 09:16:35 -04:00
Michał Janiszewski a69bd937c3 Add missing include guards 2018-10-28 13:45:46 +01:00
Michał Janiszewski 2cae875fa2
Fix mismatched new/delete operators 2018-10-28 13:18:25 +01:00
Cameron Cawley 7a5a3301ae Fix compilation on systems without evdev 2018-10-24 20:27:12 +01:00
null void 5496b52cdf removed nullptr, after the previous rollback was remerged (partially?) it seems to be causing trouble for builds with old compilers, where c++ std isn't set to at least 11, etc. 2018-10-24 11:37:31 -04:00
Christoph "baka0815" Schwerdtfeger 0f1c63b447 CHD: Use the hunk caching
We didn't remember the last hunk and always read again.
2018-10-09 22:13:35 +02:00
Christoph "baka0815" Schwerdtfeger e72bd9161e CHD: Reworked the extra frame handling
This way Sonic 2, F355, Crazy Taxi, Rayman 2 and Daytona USA work.
2018-10-09 22:12:47 +02:00
Stefanos Kornilios Mitsis Poiitidis 4ceac65b0d
Merge pull request #1412 from reicast/fh/aica-int-timing
AICA/DMA: Make the transfers take some time, add fallback option. Fixes sfa3 and bomberman online
2018-10-05 14:29:00 +02:00
Stefanos Kornilios Mitsis Poiitidis 09f8a50bf2 AICA: Make async dma an option, default on 2018-10-05 14:24:56 +02:00
Abandoned Cart d9f8187d6d
Merge pull request #1429 from reicast/ac/ui_cleanup
Android/UI: UI cleanup (themes, views, scaling, etc)
2018-10-03 14:29:17 -04:00
Ender's Games caf78e9cd7 Revert context due to lack of improvement 2018-10-03 08:30:49 -04:00
Ender's Games 46299825ae Add Resolution Mode w/ forced 640x480 emu view 2018-10-03 01:12:40 -04:00
Ender's Games 8d52045265 Stop reading values that are "malformed" on Android 2018-10-03 00:12:57 -04:00
Ender's Games 851c126129 Make blue theme summery, Version spacing 2018-10-02 23:43:17 -04:00
Abandoned Cart d436c30f3b
Merge pull request #1425 from reicast/ac/dropbox
Update Dropbox API from 1.6 to 3.0
2018-10-02 23:21:55 -04:00
Ender's Games 2a6ef7221f Fix theme applying to generic game list 2018-10-02 23:05:47 -04:00
Ender's Games 843aafebbc Follow the pre-existing naming conventions 2018-10-02 22:07:24 -04:00
Ender's Games 386104d20e Link Dropbox API to new v2 compatible project 2018-10-02 21:32:31 -04:00
Stefanos Kornilios Mitsis Poiitidis 84bf6ab913
Merge pull request #1428 from reicast/fh/ftrc-op-fix
sh4: Fix FTRC (ipr, canonical, x86) by using correct positive cutoff value
2018-10-02 23:12:28 +02:00
Ender's Games 1decfdcccc Provide meaningful toast, dismiss dialog on error 2018-10-02 16:38:06 -04:00
Ender's Games b16d2e637e Proguard: Keep all reicast classes and members 2018-10-02 16:15:23 -04:00
Ender's Games a096cac24e Gracefully error when client is not initialized 2018-10-02 12:25:32 -04:00
Ender's Games 10b623545e Add proguard config to debug for Travis 2018-10-02 10:49:53 -04:00