Commit Graph
745 Commits
Author SHA1 Message Date
Unknown W. Brackets ac43e55194 Mp3: Loop correctly from an offset.
If the offset points to an ID3 tag or the middle of a frame, that's fine -
it should just search forward to the next sync.  FFmpeg just returns a
decode error, so we do this first.
2019-04-28 08:35:35 -07:00
Unknown W. Brackets e4817b4e83 Mp3: Reset sum decoded on loop.
And only on loop, not when getting add info (which clearly doesn't loop,
from tests.)
2019-04-28 07:55:29 -07:00
Unknown W. Brackets a3640f303b Mp3: Correct sum decoded sample count.
It shouldn't consider both channels of stereo.  This could've been causing
some games to think they were playing audio at an incorrect speed.
2019-04-28 07:30:56 -07:00
Unknown W. Brackets bc1e6e12f5 Mp3: Return total frame count in sceMp3GetFrameNum.
This might fix games failing to play mp3s correctly.
2019-04-28 07:10:26 -07:00
Unknown W. BracketsandGitHub df9c922198 Merge pull request #10783 from LunaMoo/fillSoundBuffer
Remove "sound speed hack"
2019-04-28 06:20:13 -07:00
LunaMoo 0a4dc1f883 Remove "sound speed hack". 2019-04-25 04:15:31 +02:00
Unknown W. Brackets 0d6570e8ad Mp3: Correct sceMp3GetMaxOutputSample.
Was based on output buffer size, rather than frame size, before.

Fixes choppy audio in Velocity.
2019-04-24 14:31:12 -07:00
Unknown W. Brackets be6710ea4a Mp3: Fix errors for a bunch of init getters. 2019-04-24 14:13:46 -07:00
Unknown W. Brackets e4d2712897 Mp3: Apply offset to stream read buffer.
Handle errors for sceMp3CheckStreamDataNeeded as well.
2019-04-23 21:14:54 -07:00
Unknown W. Brackets f9863c3be2 Mp3: Align CheckStreamDataNeeded with InfoToAdd.
May cause problems if they don't match.
2019-04-23 20:42:13 -07:00
Unknown W. Brackets f1eaf9dc0e Mp3: Don't change buffer accounting until add.
If we just ask what we should add, that is meant to stay static until we
do actually add it.

This also reduces the max we ask for at a time, which better matches
correct behavior and might impact game behavior.
2019-04-23 20:18:16 -07:00
Unknown W. Brackets b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets fd8a0612fa SaveState: Initialize some memory that is saved.
At the very least, will help them compress better.  Also good not to leak
random memory.
2018-06-22 21:29:18 -07:00
Jan Beich 7a7c655615 MediaEngine: adjust for AVStream.codec deprecation 2018-06-13 11:52:18 +00:00
Unknown W. Brackets 395ac32d63 Debugger: Run memory breakpoints on mobile. 2018-06-06 17:31:56 -07:00
Unknown W. Brackets 289928a170 Sas: Correct calculation of VAG end.
Not sure why everything is negative one indexed, but this prevents reading
beyond the size of the buffer.

This shouldn't change sound output, but it may fix a crash if VAG is at
the edge of memory (unlikely, though.)
2018-06-06 06:08:31 -07:00
Unknown W. Brackets b56e3e8e94 Sas: Correct delay in playing samples.
We still need to walk during the delay to "use it up."  Need to test more
to see if we can just walk once directly into ATTACK - might depend on
pitch.

This also makes the first play ignore the resampleHist, which matches
samples to tests properly, and ignores linear interp for exact pitch.

These changes fix all the sascore tests that used to work.
2018-06-06 06:04:25 -07:00
Henrik Rydgård f76e5e70a7 Enable FlushInstructionCache on UWP, it's been allowed finally.
Minor warning fixes, UWP buildfix

Retarget UWP project to latest SDK.
2018-03-20 20:30:33 +01:00
Henrik Rydgård d81cbd6969 Linux buildfix 2017-08-31 17:58:31 +02:00
Henrik Rydgård 6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård b3b459507a Neon-optimize the audio s32->s16 packing function 2017-08-15 16:16:25 +02:00
Unknown W. Brackets 1fdf7c5373 UI: Skip game bg lookup without game.
This avoids trying to identify a file without a name.
2017-03-24 22:15:22 -07:00
Unknown W. Brackets 7a7e4ed23f Video: Enable threads for video decoding.
This was previously getting (accidentally?) enabled by the call to
`avformat_find_stream_info()`.  See #9262.
2017-03-22 20:36:42 -07:00
Henrik Rydgard d4ea291a10 Set PSP_SAS_MAX_GRAIN correctly. 2017-03-20 09:42:46 +01:00
Henrik Rydgard 23367925f1 Change a PanicAlert to an ERROR_LOG. Should possibly report..
http://forums.ppsspp.org/showthread.php?tid=1310&page=3

Add a comment.
2017-03-18 21:25:30 +01:00
Henrik Rydgård 440e72d250 Clean up among the logs. Remove MASTER_LOG. 2017-03-06 13:10:23 +01:00
Henrik Rydgard d64f367e1d Assorted warning fixes 2017-03-05 10:52:45 +01:00
Henrik Rydgard 26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard fcbc20f240 Small changes to make Common and Core build under my preliminary UWP setup. 2017-02-24 18:59:41 +01:00
Henrik Rydgard 19d321bd8c Fix a bad memory leak in sceMpeg 2017-02-20 11:12:39 +01:00
Henrik Rydgård baf01ab99d Fix #9196 - bug with new audio interpolation when delay was bigger than grainsize. 2016-12-30 09:52:32 +01:00
Henrik Rydgård ad04f97acb Fix bug causing stack overflow in SasAudio, #9190. Move the mixbuffer off the stack for easier-to-diagnose error (this trashed the info I needed to debug pretty badly...) 2016-12-27 18:32:47 +01:00
Henrik Rydgård 88ad1cb3d8 Attempt to workaround #9190 2016-12-27 11:55:45 +01:00
Henrik Rydgard 1e095951dd Replace while loop with division (technically a right shift). 2016-12-20 22:02:40 +01:00
Henrik Rydgard ff4b99dd97 Replace for-loop with multiplication 2016-12-20 21:52:25 +01:00
Henrik Rydgard 6782f7c75d Just figure out how many samples to read, then read it, instead of one-by-one. 2016-12-20 21:47:50 +01:00
Henrik Rydgard e802fb0b73 Remove the verification. 2016-12-20 21:42:11 +01:00
Henrik Rydgard 451388070a Fix bug. Now use the quick inner loop, just need to redo the sample reader... 2016-12-20 21:37:31 +01:00
Henrik Rydgard 064795216e Add parallel resampling algorithm that reads directly from the temp buf 2016-12-20 21:05:23 +01:00
Henrik Rydgard 47df134b66 Optimization step 1: Separate the loops, save history from buffer. 2016-12-20 20:50:34 +01:00
Henrik Rydgard 61f80edda3 SasAudio: Straightforward implementation of linear interpolation.
Not sure about the performance impact, but calling ReadSamples with 1 as
an argument can't be terribly fast. So this might need some redesign
before merge, but should be a good starting point.
2016-12-20 20:23:00 +01:00
Henrik Rydgard dee686b9d4 Add a setting to make the audio buffer sizes bluetooth-friendly on Android.
Replaces #8846
2016-12-01 21:36:44 +01:00
Unknown W. Brackets 209500ac0e Read only the mpeg header when reading packets.
When trying to convince FFmpeg to read only the header, this was allowed
to get longer.  But we only really need the actual header here, and that
can prevent FFmpeg mis-parsing later packets.
2016-09-24 17:45:51 -07:00
Henrik Rydgard a465104e28 Minor code cleanup in StereoResampler (remove inner class) 2016-09-10 12:17:19 +02:00
Unknown W. Brackets 83469d5b18 Fix a type conversion warning. 2016-09-05 19:14:48 -07:00
Chris Burgener 7d089a0f76 Clean up various files 2016-09-03 19:23:17 -04:00
Chris Burgener 645cb4d69e Add Audio Dumping to File 2016-09-03 14:05:38 -04:00
Henrik RydgårdandGitHub eac18489e6 Merge pull request #8867 from unknownbrackets/mpeg
Improve mpeg parsing / corruption issues
2016-08-06 18:14:17 +02:00
Unknown W. Brackets 980d4194c0 Io: Add a config setting for memstick status. 2016-08-05 21:27:53 -07:00
Unknown W. Brackets bf7a020c6a Io: Notify callbacks on memstick insert/remove. 2016-08-05 21:05:48 -07:00