Henrik Rydgård
0a13c78788
Revert "ffmpeg: Don't ask for multi-threaded decoding"
...
This reverts commit b173e0f4a4 .
Turns out it's not actually known to fix anything, should have closed
that old PR.
2023-01-12 16:23:39 +01:00
Henrik Rydgård
b173e0f4a4
ffmpeg: Don't ask for multi-threaded decoding
...
For whatever reason, our version of ffmpeg has problems with it,
and I don't care enough to dig deep.
See PR #13806
2023-01-12 12:13:10 +01:00
Unknown W. Brackets
c44d787df4
Mpeg: Check memory access range on GetPointer().
2023-01-09 16:53:10 -08:00
Unknown W. Brackets
a7b7bf7826
Global: Set many read-only params as const.
...
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
Henrik Rydgård
e6403d7157
Split GetPointer into two versions, to help with const correctness
2022-07-24 13:26:19 +02:00
Unknown W. Brackets
d45fe93588
Mp3: Output PCM data using even/odd buffer slot.
...
This makes sense since the audio APIs are all async.
2022-01-27 00:22:44 -08:00
Unknown W. Brackets
914d022eef
Mp3: Allow decode with NULL out pointer.
2022-01-27 00:22:44 -08:00
Unknown W. Brackets
4903e14aae
Mp3: Cleanup AuCtx constructor.
2022-01-27 00:22:43 -08:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
...
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
Unknown W. Brackets
b19e39efb0
Audiocodec: Update to latest FFmpeg packet pump.
2021-02-18 00:20:27 -08:00
Unknown W. Brackets
2362d71d70
Mpeg: Remove deprecated codec register calls.
2021-02-18 00:20:27 -08:00
Unknown W. Brackets
f7740edc6d
Debugger: Add more metadata for memory usage.
2021-02-15 15:01:21 -08:00
Unknown W. Brackets
463fc3c792
Mp3: Allow decode without pcm pointer.
...
Just like other audio decoding, you're allowed to skip audio.
Also prevents a crash if the mp3 is not yet inited.
2021-01-25 23:51:55 -08:00
sum2012
942ce775cc
Fix AuCheckStreamDataNeeded function
...
fix #13633
2020-11-08 22:47:32 +08:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
Unknown W. Brackets
4ee5d2b611
Mp3: Correct seek to specific frame.
...
Before, it treated it as an (incomplete) seek to a byte position, which
didn't make much sense. This matches PSP behavior per tests.
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
bfa9aa009d
Mp3: Properly flush the buffer on reset.
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
4b4c0f9bda
Mp3: Always output data in decode, except at end.
...
Turns out this doesn't return 0 until the end, even if there's no data
available to decode. It just writes zeros in that case.
2019-04-29 04:47:59 -07:00
Unknown W. Brackets
fde59c955d
Mp3: Use a vector for the temp buffer.
...
Hopefully will move to reading RAM directly. I think this was not always
adding data properly, as I got wrong output after decode. Makes more
sense as a vector, anyway.
2019-04-29 04:45:36 -07:00
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. Brackets
df9c922198
Merge pull request #10783 from LunaMoo/fillSoundBuffer
...
Remove "sound speed hack"
2019-04-28 06:20:13 -07:00