Commit Graph
14759 Commits
Author SHA1 Message Date
Henrik Rydgård fcf0d8e06e Add an outputChannels parameter to SetData to simplify the code 2024-04-15 11:16:03 +02:00
Henrik Rydgård 3c700aab35 Break out the separate analyze functions. 2024-04-15 11:16:00 +02:00
Henrik Rydgård 9d0dac5acb Move channels into Track 2024-04-15 11:13:47 +02:00
Henrik Rydgård 0a275883ec Move bitrate and jointstereo fields into Atrac 2024-04-15 11:13:47 +02:00
Henrik Rydgård 5c1ab7e699 Move dataOff into Track 2024-04-15 11:13:45 +02:00
Henrik Rydgård fe17ff6e69 Move loop info into Track 2024-04-15 11:12:47 +02:00
Henrik Rydgård 15b71af95f Move endSample into track_ 2024-04-15 11:12:45 +02:00
Henrik Rydgård 3f96f69b70 Move firstSampleOffset_ into Track 2024-04-15 11:08:47 +02:00
Henrik Rydgård 976f7e5ce6 Move bytesPerFrame into track 2024-04-15 11:06:40 +02:00
Henrik Rydgård babf2e1a3a Move codecType_ into track_ 2024-04-15 11:06:40 +02:00
Henrik Rydgård efd9962c6e Start separating out static track parameters: Move first_.filesize to track_.fileSize 2024-04-15 11:06:40 +02:00
Henrik Rydgård bd84e30553 Start breaking out Analyze* functions 2024-04-15 11:06:40 +02:00
Henrik Rydgård c9f5ccee3e Add comment 2024-04-15 11:06:11 +02:00
Henrik Rydgård 2a3b6b8cfb Remove unnecessary check, allowing us to de-indent 2024-04-14 16:29:20 +02:00
Henrik Rydgård 0f0149d08b Split out the Atrac context class into AtracCtx.cpp/h 2024-04-14 14:48:42 +02:00
Henrik Rydgård 9bb136f871 Remove an unnecessary enum 2024-04-14 14:48:41 +02:00
Henrik Rydgård c7c7e0a36d Fix the AxisSwap feature - had a double mutex lock, oops. 2024-04-14 13:43:20 +02:00
Henrik Rydgård 35578f0a2e More member functions 2024-04-14 11:25:19 +02:00
Henrik Rydgård eeaa3c8445 Make more functions member functions of Atrac 2024-04-14 10:55:17 +02:00
Henrik Rydgård 7d3fc65478 Make Decode and GetResetBufferInfo member functions of Atrac. 2024-04-14 10:48:01 +02:00
Henrik Rydgård eef667c5ac Separate the external interface used by sceSas 2024-04-14 10:40:12 +02:00
Henrik Rydgård 09be5935ab Add accessor for bufferState_, cleanup 2024-04-14 10:26:41 +02:00
Henrik RydgårdandGitHub aec3fa99e5 Merge pull request #19032 from GermanAizek/fix-always-false-true
Fixed conditions always false using unsigned type and logical AND 0x0 & 0x4
2024-04-13 11:28:45 +02:00
Henrik Rydgård effae82208 sceAtrac: Do some renaming to make things make more sense 2024-04-13 10:35:39 +02:00
Henrik Rydgård a1ac79c183 Remove all remaining FFMPEG use from sceAtrac. 2024-04-13 00:45:25 +02:00
Henrik Rydgård 242a87b2dd Inline FillPacket to make the next step easier 2024-04-13 00:26:37 +02:00
Henrik Rydgård ea07fdbd86 sceAtrac: Create standalone decoders as well as ffmpeg. Implement LowLevelDecode. 2024-04-13 00:19:04 +02:00
Henrik Rydgård c2bcdd3076 Buildfix with system ffmpeg 2024-04-12 16:45:45 +02:00
Henrik Rydgård 683a30e964 Remove more indentation 2024-04-12 14:25:46 +02:00
Henrik Rydgård 6bed7137f7 Remove excessive indentation 2024-04-12 14:25:46 +02:00
Henrik Rydgård ba42c07cfc _AtracDecodeData: Restructure the inner loop a bit. 2024-04-12 14:25:46 +02:00
Henrik Rydgård 1692922cd8 Use proper returns in _AtracDecodeData 2024-04-12 14:25:46 +02:00
Henrik Rydgård c43442f801 Improve and cleanup logging in sceAtrac 2024-04-12 13:53:17 +02:00
Henrik Rydgård 39b884cfb3 Atrac3/3+: Improve error handling 2024-04-12 11:18:26 +02:00
Henrik Rydgård ff372f878d Minor code cleanup 2024-04-11 16:54:29 +02:00
Henrik Rydgård 5ed77b58ca Improve the AudioDecoder API to avoid having to call a function to get the bytes consumed 2024-04-11 16:49:00 +02:00
Henrik Rydgård 45936e8826 Atrac: Add "flush_buffers" api. The ffmpeg atrac decoder was missing this. 2024-04-11 16:35:27 +02:00
Henrik Rydgård 58cb2ba804 Fix playback of atrac3+ when block align not specified 2024-04-11 16:10:31 +02:00
Herman Semenov 8e580045cd Fixed condition always false using unsigned int and logical AND 0 & 4 2024-04-11 16:56:59 +03:00
Herman Semenov c901e8c9bb [Core/GPU] Fixed condition blocks where result always true 2024-04-11 16:05:11 +03:00
Herman Semenov 0d1f7e2e6c [Core/GL/UI] Not all fields initilize and minor code refactor 2024-04-11 15:50:42 +03:00
Henrik Rydgård b35b351802 Finally remove the AVCodecContext 2024-04-11 14:50:29 +02:00
Henrik Rydgård 6ea8efc0e9 Bypass AvCodecContext for atrac3plus, for a simpler API. 2024-04-11 14:39:59 +02:00
Henrik Rydgård bf280eb410 Remove "SetExtraData" from AudioDecoder, pass in the data at creation instead 2024-04-11 14:39:59 +02:00
Henrik Rydgård 33ba30694a Revert "Disable FFMPEG temporarily to avoid symbol clashes"
This reverts commit 14222f5977e8aa0c167e8879450d84d77df3b1a2.
2024-04-11 14:39:59 +02:00
Henrik Rydgård 416ba81d20 Remove the channel_layout stuff 2024-04-11 14:39:59 +02:00
Henrik Rydgård e871133fe6 Buildfixes 2024-04-11 14:39:59 +02:00
Henrik Rydgård 0d30728832 Remove context parameter from av_log 2024-04-11 14:39:59 +02:00
Henrik Rydgård e10b90b718 Switch at3_standalone to C++ to avoid namespace clashes 2024-04-11 14:39:59 +02:00
Henrik Rydgård d617aec8c8 Simplify away AVFrame from decoding functions, remove buffer pools 2024-04-11 14:39:59 +02:00