Commit Graph
100 Commits
Author SHA1 Message Date
oioitff 3c5b817283 scheduling in atrac decode functions. 2013-07-10 14:45:51 +08:00
oioitff 97c6b96408 Remove IsAudioEnd(), use IsNoAudioData() instead. 2013-07-02 17:20:46 +08:00
oioitff 9c11d0542c Do savestate for mpegheader. 2013-07-02 01:26:31 +08:00
oioitff e503ed15ec Try to open MediaEngine as a real PSP. 2013-07-02 01:04:19 +08:00
oioitff c93a1b6f33 Implement scePsmfSpecifyStreamWithStreamType
and scePsmfSpecifyStreamWithStreamTypeNumber.
2013-07-01 14:02:12 +08:00
oioitff d8a661e71f Tiny bug fix for scePsmfSetPsmf. 2013-07-01 04:25:04 +08:00
oioitff db668f74db delete previous psmf if exists. 2013-07-01 04:17:09 +08:00
oioitff b119356e9a Improve getPsmf for scePsmf. 2013-07-01 03:52:35 +08:00
oioitff 64a042d7f8 Correct sceMpegAvcDecode/sceMpegAvcDecodeYCbCr behavior. 2013-06-30 20:24:20 +08:00
oioitff dc04584ca1 Add a new option to enable
Linear Filtering only for CGs.
2013-06-30 03:35:28 +08:00
oioitff 6b87524077 sceMpegGetAvcAu should return
PSP_ERROR_MPEG_NO_DATA at first call before mpegAvcDecode.
2013-06-28 22:06:20 +08:00
oioitff a86ddab8d0 Tiny bug fix. 2013-06-28 05:44:57 +08:00
oioitff ecffab317a Improve PsmfPlayer.
Implement video loop for PsmfPlayer.
2013-06-27 23:46:26 +08:00
oioitff 0e7f41f65e Improve _AtracGenarateContext.
Remove hack for releasing atrac3 voice.
2013-06-26 00:55:58 +08:00
oioitff 2b9f9283c2 Improve getRemainSize for MediaEngine.
It's more accurate now.
2013-06-25 00:17:04 +08:00
oioitff 7f7e7adfe2 Free loaded data in Ringbuffer only while
ffmpeg is requiring more data. Clean up some codes.
2013-06-25 00:16:59 +08:00
oioitff fa4ad234a1 Use ERROR_LOG for error messages instead. 2013-06-25 00:16:55 +08:00
oioitff 1e4d896980 Implement scePsmfPlayerSetPsmfOffset and
scePsmfPlayerSetPsmfOffsetCB. And use memory buffer for PsmfPlayer
directly instead.
2013-06-25 00:16:51 +08:00
oioitff b1cc94b9bf Bug fix for mpeg. 2013-06-25 00:16:46 +08:00
oioitff 7bde93d534 Fix corrupted frames and implement savestate
for mpeg.
2013-06-25 00:16:42 +08:00
oioitff c970a7e689 Use ringbuffer as a real PSP instead huge buffer. 2013-06-25 00:16:38 +08:00
oioitff ffc3db1429 Bug fix for sceMp3, make sceMp3 work fine. (dunno why this didn't merge before)
Conflicts:
	Core/HLE/sceMp3.cpp
2013-06-23 16:07:37 +02:00
oioitff 2432101216 Start looping if there is not enough samples.
Fix noise in some looping bgm.
2013-06-22 21:25:08 +08:00
oioitff 2fa9637818 Use a larger index buffer.
Fix crash for 7th Dragon 2020 at some certain places.
2013-06-21 23:42:09 +08:00
oioitff 7adb16e3ac Bug fix for sceAtrac. 2013-06-18 13:55:45 +08:00
oioitff 00e6873a30 Bug fix for scepsmf. 2013-06-16 01:35:47 +08:00
oioitff f2af925015 fix wrong video/audio stream channel. 2013-06-15 01:42:19 +08:00
oioitff 94bc8d0cd6 Implement scePsmfGetNumberOfSpecificStreams. 2013-06-15 01:39:56 +08:00
oioitff 23cefa03c6 Delay video decode until we have enough packets. 2013-06-14 01:16:59 -07:00
oioitff 09d5a404e2 Both video/audio timestamp seem to start from firstTimeStamp in sceMpeg.
Fix video playback for Castlevania Dracula X Chronicles.
2013-06-13 21:03:17 +08:00
oioitff 1e00e0f519 Use a hack method to release already finished atrac3 voice. 2013-06-12 20:55:40 +08:00
oioitff 77a17cacc5 Add support for multiple video/audio stream. 2013-06-11 19:04:14 +08:00
oioitff 32fb534375 Improve mpeg timestamp.
Read 6 bytes timestamp instead.
2013-06-10 04:21:36 +08:00
oioitff cdebf89584 Improve some functions for scePsmfPlayer.
Fix video end issue for Mahou Shoujo Nanoha A's Portable: The Gears of
Destiny
2013-06-10 01:07:43 +08:00
oioitff 64b73ee51d Improve Atrac id generating and fix crash. 2013-06-09 21:10:41 +08:00
oioitff c98adee757 Implement __sceSasConcatenateATRAC3.
.
2013-06-09 19:07:02 +08:00
oioitff 406a6adf6d Improve _AtracGenarateContext.
Fix tiny bug for savestate.
2013-06-09 19:06:24 +08:00
oioitff bfb66cc2ab Scale volume in sceP3daBridgeCore and avoid overflow. 2013-06-09 02:27:30 +08:00
oioitff 883d60fad3 Use a pointer for sampleQueue in SasAtrac3. 2013-06-09 01:58:06 +08:00
oioitff 3c13b574e3 Partly implement __sceSasSetVoiceATRAC3.
Fix Sol Trigger hang up issue.
2013-06-09 01:34:38 +08:00
oioitff cac9b89823 Basically implement _sceAtracGetContextAddress. 2013-06-09 01:31:45 +08:00
oioitff 6fb2abd0fb Add sceAudiocodec stuff 2013-06-09 01:28:58 +08:00
oioitff a51291e69c Add Info logs for low level decode. 2013-06-08 01:43:39 +08:00
oioitff 3e0e1f6f35 A tiny mistake in low level atrac3 decode. 2013-06-08 01:38:08 +08:00
oioitff 5be3a6e748 PsmfPlayer seems to step video and sync
in scePsmfPlayerGetVideoData.
2013-06-08 00:27:31 +08:00
oioitff 4385362369 Max sample number for atrac3plus should be 0x800.
Fix bgm and voice for Black Rock Shooter.
2013-06-07 20:38:31 +08:00
oioitff a2f9fc9540 Fix sceAtracGetBufferInfoForReseting. 2013-06-07 20:21:25 +08:00
oioitff 49ecb1bdc0 Add support for mono CG audios. 2013-06-07 17:14:26 +08:00
oioitff 1000562e90 Partly implement sceP3daBridgeCore.
Fix the missing voice in Saigo no Yakusoku no Monogatari.
2013-06-07 16:18:07 +08:00
oioitff 5fb92f6fd8 Bug fix for _AtracSetData. 2013-06-06 15:51:21 +08:00
oioitff 4d18a0a9b5 The correct fix for choppy cg audios and bgm.
And fix missing bgm and voice issue for 7th Dragon 2020.
2013-06-06 06:10:31 +08:00
oioitff 67154f69eb Revert fix in #2092 2013-06-06 06:10:26 +08:00
oioitff c9845054e8 Fix choppy cg audio, bgm and even some
missing bgm, voice, se.
2013-06-05 22:52:05 +08:00
oioitff 489126fa3a Channel volume should be done in __AudioEnqueue.
Fix noise in 7th Dragon 2020.
2013-06-05 16:16:53 +08:00
oioitff 156c4ca78a Fix crash for invalid mpeg header. 2013-06-05 15:46:04 +08:00
oioitff a3788162c5 Add ffmpeg logs for MediaEngine in debug mode 2013-06-05 00:27:22 +08:00
oioitff c913f92427 More improvement for mpeg pts.
The mpeglastTimeStamp is probably wrong in some videos. So a video is
end only if there is no more data for decoding.
2013-06-04 23:03:09 +08:00
oioitff c9d07575f5 Implement sceAtracGetBufferInfoForReseting 2013-06-03 21:33:34 +08:00
oioitff f9a6c95d93 fix a tiny bug for atrac crash 2013-06-03 20:02:44 +08:00
oioitff a9ba797ce5 Improve mpeg pts.
A real PSP return a value start from 0.
2013-06-03 17:00:58 +08:00
oioitff c84cdee0c7 Partly implement scePsmf with MediaEngine. 2013-06-02 01:30:51 +08:00
oioitff 0b23e0389f Rewrite and implement sceMpeg with MediaEngine. 2013-06-02 01:29:59 +08:00
oioitff e099b8d954 Rewrite and implement MediaEngine. 2013-06-02 01:29:22 +08:00
oioitff a7657c5a70 Fix a tiny bug in Framebuffer.
Prepare for showing video images.
2013-06-02 01:28:23 +08:00
oioitff e0e8b2ec81 Add MpegDemux for demuxing audios. 2013-06-02 01:25:53 +08:00
oioitff 60f56a3cb6 Remove the filter project. 2013-05-30 19:22:09 +08: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
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
oioitff 338f7ae700 Use another method to scale by envelopValue. 2013-05-24 04:08:37 +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 99f8041375 Implement pcm voice correctly. 2013-05-24 00:42:15 +08:00
oioitff 69e1671a90 Bug fix when loading filter failed. 2013-05-21 02:03:36 +08:00
oioitff c700f90503 Use filter directly without register. 2013-05-21 00:57:17 +08:00
oioitff 2fff5b143e Fix freeze issue for atrac3plus. 2013-05-21 00:02:52 +08:00
oioitff b28d72ed27 Remove an useless command in audioPlayer. 2013-05-20 22:16:40 +08: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 5e27af6eea Remove the dependency on DirectShow SDK. 2013-05-14 19:41:08 +08:00
oioitff 34b4cd29a2 add atrac3plus support for sceAtrac 2013-05-14 19:03:53 +08:00
oioitff 9b0c22f87d Add atrac3plus lib. 2013-05-14 19:01:33 +08:00
oioitff a1d7d8f25f Add a stream source filter project. 2013-05-14 16:59:36 +08:00
oioitff 64680a2c68 Revert changes for remainFrame in #1776. 2013-05-12 21:27:41 +08: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
oioitff 8d10724b64 Implement volume control for _sceSasCoreWithMix.
Tested with Fate Unlimited Code.
2013-05-11 04:30:02 +08:00
oioitff a99d86d43f Fix sound noise for PC. 2013-05-11 03:36:28 +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
oioitff 0d2fbeff9c Improve remainFrame in sceAtrac 2013-05-06 04:02:16 +08:00
oioitff 863fa2c3ff Fix the channel volume. 2013-04-26 22:24:18 +08:00
oioitff a944c96137 Remove the useless codes instead. 2013-04-23 22:31:23 +08:00
oioitff 62f79989bd Implement _sceSasCoreWithMix correctly.
The inoutAddr should be both input and output buffer address.
2013-04-23 22:00:14 +08:00
oioitff f2e66d0d03 Use native code instead of ATL::CImage 2013-04-19 17:21:16 +08:00