Commit Graph

387 Commits

Author SHA1 Message Date
sergiobenrocha2
9dbd18e59d Ensure that it will use ffmpeg from ppsspp, not from the system. 2015-02-03 17:46:51 -02:00
Henrik Rydgard
24c78ed2f4 Add option to turn off the synchronizing audio resampler. Only available if output sample rate is 44100Hz. 2015-01-31 12:12:29 +01:00
Henrik Rydgard
86cee103f3 Add audio debug stats dev tool. Increase audio buffer low watermark a bit, hopefully helping #7370. 2015-01-29 12:56:17 +01:00
Unknown W. Brackets
daa90024ed Defer opening audio codec 'til we have block size.
May fix issues with newer versions of FFmpeg (#5772.)
2015-01-18 12:59:26 -08:00
Henrik Rydgard
8b05e7abf0 Adjust the audio speed on non-60hz Android devices to compensate.
Greatly improves audio stability on Nexus S.

Fixes #6677 .
2015-01-14 00:45:12 +01:00
Henrik Rydgard
26e4cb4a21 More cleanup 2015-01-11 20:35:52 +01:00
Henrik Rydgard
0c6ceee210 Optimize the resampler a little. Update native with new ability to not force 44khz so we actually get any use.
This causes Nexus 4 and Nexus 9 to end up on the fast path, greatly decreasing audio latency!

This also removes the "atomic audio" setting as the new audio code is lock-free always.
2015-01-11 18:06:42 +01:00
Henrik Rydgard
1b926ec59e Increase the resampler buffer size, needed on Shield :(
Reset DSound to 44100.
2015-01-11 18:06:39 +01:00
Henrik Rydgard
c4169313b7 Resampler: Remove volume handling 2015-01-11 18:06:12 +01:00
Henrik Rydgard
e312d6b5fd Replace outAudioQueue with Dolphin's resampler. 2015-01-11 18:06:06 +01:00
Unknown W. Brackets
c4c581000f Report up to 9GB free on the memory stick.
This works around a bug in a Harry Potter game that happens on real
hardware.  Thanks to gdmk02 for a lot of testing.

Unfortunately, it'll still fail with certain amounts of free space, but it
does this on a real PSP also.
2015-01-05 22:38:47 -08:00
Unknown W. Brackets
d6a113809b Add basic infrastructure to time io better.
This allows the filesystems to more accurately control timing.
But they're not actually doing it yet (same timing as before.)
2014-12-26 01:15:17 -08:00
Unknown W. Brackets
3f20b32041 Add an option to prevent cpu stall on slow IO.
This is good for any slow storage, including:
  * Hard disk spinning up.
  * Generally slow (cheap) SD cards.
  * HTTP or Samba streaming.

May possibly cause bugs in some cases where timing is unrealistic.  That
being said, as long as the game is a UMD game, and there's caching (could
enable memory caching for storage), it should not be a problem usually.
2014-12-26 01:07:16 -08:00
Lioncash
ff0ea751c5 MediaEngine: Get rid of implicit boolean conversions to int 2014-12-13 23:40:04 -05:00
Henrik Rydgard
1a1faeffd1 More audio microoptimization 2014-12-07 21:14:09 +01:00
Lioncash
f830d5dec7 Core: Mark some functions as const 2014-12-03 15:16:11 -05:00
Unknown W. Brackets
d4e8bd96af Handle disk full more properly in sceIoWrite(). 2014-11-02 10:55:27 -08:00
Unknown W. Brackets
2958c575a1 Check actual free disk space when games ask.
Windows only for the moment.
2014-11-01 00:33:19 -07:00
Henrik Rydgard
d24abb3af0 More GetPointer cleanup. memCardDirectory->memStickDirectory. 2014-10-19 23:20:51 +02:00
Unknown W. Brackets
4702ae0e41 Add breakpoints to most sceAtrac mem access. 2014-09-23 11:33:18 -07:00
Henrik Rydgård
5f8f3633a8 Merge pull request #6685 from unknownbrackets/kill-volume
Remove bgm and sfx volume settings
2014-08-19 07:56:01 +02:00
Unknown W. Brackets
3fbab33c91 Only loop at video end.
In case of a short video that runs out of data but isn't ready to loop
yet.
2014-08-17 15:46:04 -07:00
Unknown W. Brackets
5c470a1923 Remove bgm and sfx volume settings.
They don't actually work in all games, and this only confuses users.

Also, the default 7 lowers the volume of audio detected as bgm or sfx, but
not other volume.  This means that some audio may have played too loud in
some games by default, which will be fixed by this change.
2014-08-17 14:16:59 -07:00
Sacha
cd20288d99 Fix some compiler warnings. 2014-07-17 00:49:58 +10:00
Henrik Rydgard
e444e21a8a Oops 2014-06-23 22:56:12 +02:00
Henrik Rydgard
b4a9780b81 Typo fix 2014-06-23 22:51:22 +02:00
Henrik Rydgard
8e7570e8cd Improve some error messages 2014-06-23 21:42:31 +02:00
Unknown W. Brackets
47ad97617e Play AT3 files in background audio too.
Fixes 3rd Birthday and PQ2, at least.
2014-06-22 09:55:14 -07:00
Henrik Rydgard
8c36921d3c Have SimpleAudio respect channels/samplerate passed in 2014-06-22 18:33:09 +02:00
Henrik Rydgard
dc66e18c00 Minor perf fix in SimpleAudio: Lazily create resampling contexts once instead of every audio frame 2014-06-22 17:50:47 +02:00
Henrik Rydgard
cefc0bc96f Play the game's SND0.AT3 when a game is selected in the menu and on the "game screen". 2014-06-22 17:02:04 +02:00
Henrik Rydgard
12cef8fa80 Oops, buildfixes 2014-06-22 14:23:06 +02:00
Henrik Rydgard
1d0cc3417c Audio stuff: Cleanup, delete dead code 2014-06-22 14:01:23 +02:00
Unknown W. Brackets
c142207a93 Fix a few warnings, mostly type comparisons. 2014-05-31 21:42:57 -07:00
Unknown W. Brackets
95414d6727 Get rid of some duplicate code. 2014-05-29 08:30:00 -07:00
Unknown W. Brackets
29a9ff369e Make a note when we need to reset the shader.
Hmm, not sure this is the cleanest way.
2014-05-27 22:12:25 +02:00
Unknown W. Brackets
bd31b776c7 Report GHA phase shifting. 2014-05-27 00:03:28 -07:00
Unknown W. Brackets
13b735fd02 Validate more params in scePsmfPlayerGetVideoData. 2014-05-23 23:00:01 -07:00
Unknown W. Brackets
16f08cfde0 Oops, always grab the first, not latest, audio pts.
In case it wraps around.
2014-05-15 01:09:38 -07:00
Unknown W. Brackets
e522eea2b4 Improve psmf seek perf and audio sync. 2014-05-15 00:28:54 -07:00
Unknown W. Brackets
2042672ec7 Correct the audio pts from the actual stream data.
Before, we would just increment it and hope we were right.  There's no
reason we'd be wrong, but with seeking we have to be more careful.
2014-05-15 00:05:40 -07:00
Unknown W. Brackets
0e781cd053 Fix ranged mpeg memchecks, oops. 2014-05-11 21:52:15 -07:00
Unknown W. Brackets
9c0bc32f52 Add support for initPts in scePsmfPlayerStart().
It won't be super speedy though, could more ideally do it on the calls to
Update()...
2014-05-11 14:23:13 -07:00
Unknown W. Brackets
f052778c2d Unlock reslts before scheduling.
To prevent deadlock while debugging with events all running sync.
2014-04-28 22:32:34 -07:00
Unknown W. Brackets
647d6c0960 Invalidate when writing video image.
It is required to update the framebuffer, of course.  Fixes Dead or Alive
video flicker.
2014-04-27 08:23:42 -07:00
Unknown W. Brackets
6c53f19854 Trigger memchecks on audio decode from video. 2014-04-26 11:51:06 -07:00
Unknown W. Brackets
065677095f Trigger memchecks on writing out video data. 2014-04-26 11:48:02 -07:00
Unknown W. Brackets
eae4c9cc49 Check for no audio more directly.
This fixes some cases where the flag was set wrong.
2014-04-26 09:38:13 -07:00
Unknown W. Brackets
1de6941482 Correct PTS reading during audio demux. 2014-04-25 22:50:36 -07:00
Unknown W. Brackets
891764d8ee Make scePsmfPlayerSelect*() actually switch.
Don't have any games actually using this, so let's report too.  Audio is
falsely working when the stream isn't playable, not exactly sure the best
way to detect that.
2014-04-22 08:07:49 -07:00