Commit Graph

212 Commits

Author SHA1 Message Date
Unknown W. Brackets
ffbe28fc61 Fix some minor type conversion warnings. 2013-05-31 23:14:26 -07:00
lioncash
85098289e8 Fix improper clearing of the sample queue in sceAtrac.cpp 2013-05-30 12:15:17 -04:00
Henrik Rydgard
2bdb338bf5 Turn down some excessive logging. 2013-05-30 16:21:53 +02:00
King_DuckZ
61500281a9 Warning fix on Intel compiler. 2013-05-30 15:42:11 +02:00
King_DuckZ
1455452850 Trailing whitespaces removed. 2013-05-30 15:42:11 +02:00
oioitff
852a07d347 Remove all dshow stuff. 2013-05-30 19:14:18 +08:00
oioitff
b0a3f803e0 Add support for new atrac3plus decoder 2013-05-30 17:33:47 +08:00
raven02
c41ac3659f Move low level atrac3 audio WARN_LOG to sceAtracLowLevelInitDecoder 2013-05-27 20:38:31 +08:00
oioitff
f158eed95b Build fix, sorry. 2013-05-27 18:18:20 +08:00
oioitff
8ca79f8959 Implement low level atrac3 decoder. 2013-05-27 16:49:00 +08:00
raven02
84ccfde2ef Fix crash when low level decode hits atrac3 audio 2013-05-24 23:20:14 +08:00
raven02
95cbd3c50c Add (low level) to distinguish with high level decode 2013-05-24 22:43:10 +08:00
raven02
104c20d787 Add atrac3+ mono audio WARN_LOG when atrac->atracChannels == 1 2013-05-24 23:33:22 +09:00
raven02
bc1c83afc6 Integrate atrac3+ low level decoding from oioitff media branch 2013-05-24 21:15:51 +08:00
oioitff
455708bbc3 Fake implement low level atrac decoder. 2013-05-24 01:00:27 +08:00
oioitff
67eeb112a9 Normally, remainFrame is not less than 0. 2013-05-24 00:55:10 +08:00
oioitff
2fff5b143e Fix freeze issue for atrac3plus. 2013-05-21 00:02:52 +08:00
raven02
ace7f5bcb4 Fix Gundam AGE Universe hang up at title screen 2013-05-20 20:30:04 +08:00
Henrik Rydgard
5877929fe5 Add Mersenne Twister random number generator. 2013-05-20 00:57:45 +02:00
Henrik Rydgård
a1060ffabd Merge pull request #1803 from oioitff/atrac3plus
Add atrac3plus filter for windows
2013-05-19 08:09:01 -07:00
raven02
0cf5595b9d DBZ Tag Team requires working sceAtracLowLevelDecode() 2013-05-19 19:54:02 +08:00
Unknown W. Brackets
f67d4f959f Clean up some atrac-related type/shadow warnings. 2013-05-18 10:20:39 -07:00
oioitff
41860c5ade The hack way for numSamples may be still
necessary for some games. Just use a better hack way.
2013-05-17 01:17:58 +08:00
oioitff
7bd3f389c7 Improve getremainFrame.
Fixed Musou Orochi 2 and so on.
2013-05-17 01:15:23 +08:00
oioitff
1a2bcb70ce Not to loop or end audios when numSamples is 0.
Some games may check for it and add more data.
2013-05-14 23:27:04 +08:00
oioitff
34b4cd29a2 add atrac3plus support for sceAtrac 2013-05-14 19:03:53 +08:00
raven02
61c777983b Fix loop problem in Three Kingdom VIII 2013-05-13 21:15:02 +08:00
aquanull
6ab94303b9 av_get_default_channel_layout returns int64_t
And one less signed/unsigned comparison warning.
2013-05-13 16:20:04 +08:00
Henrik Rydgård
7d561eb520 Merge pull request #1779 from oioitff/atrac-fix
Finally got how sceAtracAddStreamData should work.
2013-05-12 06:28:23 -07:00
oioitff
64680a2c68 Revert changes for remainFrame in #1776. 2013-05-12 21:27:41 +08:00
Henrik Rydgard
9ea0f60514 Ugly android buildfix 2013-05-12 15:24:52 +02:00
oioitff
066a2e2182 Add some comments for sceAtrac 2013-05-12 21:14:41 +08:00
oioitff
7b8fb33ebc Improve sceAtracAddStreamData. 2013-05-12 20:04:50 +08:00
raven02
d822be8ac9 Bitrate calculation based on uofw implementation. 2013-05-12 17:00:21 +08:00
Henrik Rydgård
d1eca34d05 Merge pull request #1745 from oioitff/atrac-fix
Improve sceAtracAddStreamData
2013-05-11 00:56:28 -07:00
raven02
be4f1a00b6 Show the log in yellow color 2013-05-10 23:47:05 +08:00
raven02
7ae62fc0d6 Add INFO_LOG for atrac3+ audio 2013-05-10 23:42:10 +08:00
oioitff
b1ec715d2f sceAtracAddStreamData is only available after
sceAtracGetStreamDataInfo called.
2013-05-10 19:56:53 +08:00
oioitff
3555d656a4 Revert #1731 for sceAtrac
It's not working correctly.
2013-05-10 16:38:06 +08:00
oioitff
7cc0cdd346 Only add stream data when it need more atrac data.
Tested with Djmax Portable.
2013-05-09 19:59:13 +08:00
oioitff
529e2f5d52 Build fix, sorry. 2013-05-09 00:19:40 +08:00
oioitff
f86bc2f3da Improve remainFrame. 2013-05-08 23:50:26 +08:00
Henrik Rydgård
d8f9790abc Some Mac build fixes from vit9696 and some more. Update submodules. 2013-05-07 00:08:57 +02:00
oioitff
0d2fbeff9c Improve remainFrame in sceAtrac 2013-05-06 04:02:16 +08:00
Unknown W. Brackets
0d7863138b Don't just say 0 for remainFrame in sceAtrac.
Fixes LittleBigPlanet.
2013-05-05 09:28:36 -07:00
Unknown W. Brackets
0613e4b20d Correct savestate logic in atrac.
Not 100% sure it works though, it doesn't crash and games run.
USE_FFMPEG builds with this change.
2013-05-04 09:30:06 -07:00
Henrik Rydgard
34b1c24daf Buildfix for some new compiler 2013-05-04 17:46:44 +02:00
raven02
4373c1170d Basic Atrac3 Support in sceAtrac using ffmpeg 2013-05-04 16:00:00 +08:00
nachume
c95c85ea8d I'm sorry. Comment was unnecessary
and sceAtrac too.
2013-05-02 01:05:22 +09:00
nachume
eac08a496c FIX unintelligible sequence of decimal characters on savedialog.
ppge_atlas JPN font define ShiftJIS -> UTF8 is all ok.
    but, cannot use all of chinese character. bacause blockAlloc failed. 
    So no change drawing Kanji.
    you can try to change native/tools/atlastool.cpp USE_LEVEL for all of chinese character.

FIX savedialog XXXGetStatus() loop. for daungeon traveler 2.
    Can now be saved it.
FIX sceAtrac getCodec  InvalidMemory
2013-05-02 00:14:41 +09:00
sum2012
2d937584e0 Fix Fix Sengoku Musou 3 Z Special crash in sceAtracGetChannel 2013-04-30 02:01:17 +08:00
Unknown W. Brackets
993554e873 Revert sceAtracGetSecondBufferInfo().
I don't know if those changes fixed any games, but they look wrong.
Reverting fixes Holy Invasion of Privacy and Valkyrie Profile.
2013-04-28 12:43:17 -07:00
raven02
9bd8531110 Add Memory::IsValidAddress to sceAtracGetSoundSample() 2013-04-16 15:19:07 +08:00
raven02
fd1bc40c07 Few more updates to sceAtracGetSoundSample() & sceAtracGetSecondBufferInfo 2013-04-16 15:12:19 +08:00
raven02
b9b01cc05a More update to sceAtrac 2013-04-16 14:03:24 +08:00
Henrik Rydgård
8fd5328cc0 Merge pull request #1263 from raven02/patch-10
Improve bunch of functions in sceAtrac
2013-04-15 05:39:47 -07:00
Henrik Rydgård
724f84ce6d Merge pull request #1271 from raven02/patch-12
Suppress static noise from PCM output
2013-04-13 13:14:49 -07:00
Unknown W. Brackets
e5c4894bce Set the buffer values in sceAtracSetHalfwayBuffer.
We set them in the GetID() one, so ought to here as well.
2013-04-13 09:24:55 -07:00
raven02
0691871125 Suppress static noise from PCM output 2013-04-13 20:27:16 +08:00
raven02
da738957c2 Improve Analyze()/ GetNextSample() / GetSoundSample() / SetLoopNum() in sceAtrac 2013-04-13 00:49:22 +08:00
raven02
746b866129 Add readSize > halfBufferSize for sceAtracSetHalfwayBufferAndGetID 2013-04-12 09:54:10 +08:00
Unknown W. Brackets
901fa960ab Fix params for sceAtracSetHalfwayBufferAndGetID(). 2013-04-09 08:22:01 -07:00
Unknown W. Brackets
ed599375bf Handle fragmented atrac IDs better.
This avoids conflicts when ids are deleted.
2013-03-22 08:25:14 -07:00
Unknown W. Brackets
9dddd0d90d Validate addresses when analyzing atrac. 2013-03-13 22:59:07 -07:00
Unknown W. Brackets
e3aaf8284b Always say the second buffer isn't needed. 2013-03-11 08:36:47 -07:00
raven02
9f127fcf0d Turn down level sceAtracDecodeData log level 2013-03-06 07:02:40 +08:00
Unknown W. Brackets
64c42ffaf2 Fix some warnings generated by clang. 2013-02-24 10:23:31 -08:00
Unknown W. Brackets
51d5b84108 Fix some misc HLE warnings. 2013-02-18 09:04:43 -08:00
Unknown W. Brackets
112c1e9e23 Automatically delete pointers when savestating. 2013-02-04 08:28:22 -08:00
Unknown W. Brackets
a4032c5170 Simplify savestate code so it's all automagical.
If you can't beat 'em, join 'em?
2013-02-04 08:27:01 -08:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Unknown W. Brackets
ee62c807ee Attempt to read the atrac size from the file. 2013-02-03 16:54:52 -08:00
raven02
8a520faf5d Build fix 2013-02-04 05:25:12 +08:00
Henrik Rydgård
7d6c113a97 Merge pull request #582 from raven02/master
Add few new stubs seen from Dragon Ball Z Tenkaichi Tag Team
2013-02-03 13:15:32 -08:00
raven02
24c720892c Add few stubs seen from Dragon Ball Z Tenkaichi Tag Team 2013-02-04 03:19:55 +08:00
Unknown W. Brackets
5b9721772a Properly set the finish flag at the end. 2013-02-03 10:58:18 -08:00
Unknown W. Brackets
048142d8b1 Approximate atrac as compressing to 1/3 the size. 2013-02-03 10:44:20 -08:00
Unknown W. Brackets
5b6f97955b Always return <= max samples for atrac. 2013-02-03 10:37:47 -08:00
Unknown W. Brackets
160c59cf9b Fix atrac looping, oops. 2013-02-03 10:34:13 -08:00
Unknown W. Brackets
ddedd7c39a This atrac logging hack isn't needed now. 2013-02-03 09:57:02 -08:00
raven02
3e319d5975 Add stubs for _sceAtracGetContextAddress 2013-02-03 08:08:44 +08:00
raven02
eb639d18b4 Init first and second buffer struct 2013-02-03 04:53:43 +08:00
Unknown W. Brackets
56e051a9c4 Attempt at sceAtracResetPlayPosition(). 2013-02-01 23:16:18 -08:00
Unknown W. Brackets
acdbc20024 Make it look a bit like we're decoding atrac. 2013-02-01 23:12:27 -08:00
Unknown W. Brackets
6d078ef8f3 More correctly lie that atrac decoding finished. 2013-02-01 08:59:39 -08:00
Unknown W. Brackets
5dcc72c1fe Keep track of the atrac buffer size and return it. 2013-02-01 08:59:23 -08:00
Unknown W. Brackets
a77f9667bf Return saner fake sample sizes in atrac. 2013-02-01 08:40:36 -08:00
Unknown W. Brackets
0eaced4685 Track Atrac as a map and associate data. 2013-02-01 08:33:32 -08:00
Unknown W. Brackets
d791f960a0 Hack to prevent games from lagging on atrac errors. 2013-01-22 23:01:10 -08:00
Unknown W. Brackets
109764b17e Return a fake id for *AndGetID() atrac funcs. 2013-01-22 22:34:46 -08:00
Unknown W. Brackets
984663b882 Add a couple unknown syscalls hit in games.
Specifically Velocity and Mad Blocker Alpha.
2013-01-08 00:29:52 -08:00
Darth1701
d8d0893c41 Update Core/HLE/sceAtrac.cpp 2013-01-07 03:04:10 +01:00
Henrik Rydgard
e95cb992dc Until we implement more of sceAtrac, it's better if it pretends to be successful always apparently... 2013-01-06 16:27:50 +01:00
raven02
9f0e34a668 Fix game break for MotoGP and FF Crisis Core 2013-01-06 20:20:51 +08:00
raven02
8e950efff4 Add stubs and add getCodecType in sceAtrac 2013-01-06 11:48:30 +08:00
Henrik Rydgard
4c8584da71 Add the correct spelling of sceAtracGetBufferInfoForResetting. Add a psmf function. 2013-01-05 18:15:27 +01:00
Henrik Rydgård
fb8604e772 Merge pull request #274 from raven02/master
Border cosmetic fix in save/load menu + add 2 stubs in sceAtrac
2012-12-27 23:24:23 -08:00
raven02
cb2d8d5c75 Add 2 stubs in sceAtrac 2012-12-28 11:40:44 +08:00
Unknown W. Brackets
fcc5bfee99 Add more atrac3 stubs to get games farther. 2012-12-26 13:36:10 -08:00
TMaul
b45c9a2747 Fix some atrac warnings
Shouldn't be returning uninited vars, just in case..
2012-12-23 19:50:50 +00:00
Henrik Rydgård
0d6cfab61b Merge pull request #231 from raven02/sceAtrac
sceAtrac wrapped and change NOTICE to DEBUG for block transfer.
2012-12-23 02:52:01 -08:00
raven02
b6e865c694 sceAtrac wrapped and change NOTICE to DEBUG for block transfer. 2012-12-23 17:51:55 +08:00
TMaul
154d3aaf6a Add sceAtracSetMOutHalfwayBuffer definitiion
PLus clean up the font code a tiny bit
2012-12-22 18:48:32 +00:00
Henrik Rydgård
8782b2aec7 Quickfix issue 160 and fix a trigraph warning 2012-12-10 21:28:20 +07:00
Unknown W. Brackets
7281456119 Return 0 in sceAtracReinit() to make games happier.
This makes Numblast get a bit farther.
2012-12-09 17:57:35 -08:00
Ced2911
8bf93cfb54 sceAtrac wrap 2012-11-27 13:05:51 +01:00
Ced2911
6db4ea2ad1 less Memory::GetPointer 2012-11-27 10:18:36 +01:00
Henrik Rydgard
b214a1a1da Revert "Better wrapper system, and fixed warnings"
This reverts commit a00b1855cb.

Conflicts:

	Core/HLE/FunctionWrappers.h
	Core/HLE/sceCtrl.cpp
	Core/HLE/sceKernelModule.cpp
2012-11-05 10:05:09 +01:00
Henrik Rydgard
6bed1afb72 Merge branch 'master' of https://github.com/artart78/ppsspp into artart78-master 2012-11-04 23:59:26 +01:00
Henrik Rydgard
64cc573703 Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00
Arthur Blot
a00b1855cb Better wrapper system, and fixed warnings 2012-11-04 15:08:23 +01:00
Henrik Rydgard
4f7ad15758 Add snapshot of the whole source code. 2012-11-01 16:19:01 +01:00