mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-08 21:53:39 +02:00
Merge pull request #2941 from thedax/audioFix
64-bit PPSSPP(Windows): Attempt to fix games that crash with atrac3+ DLLs.
This commit is contained in:
@@ -589,7 +589,10 @@ int MediaEngine::getAudioSamples(u8* buffer) {
|
||||
return 0;
|
||||
}
|
||||
int outbytes = 0;
|
||||
Atrac3plus_Decoder::Decode(m_audioContext, audioFrame, frameSize, &outbytes, buffer);
|
||||
|
||||
if(m_audioContext != NULL)
|
||||
Atrac3plus_Decoder::Decode(m_audioContext, audioFrame, frameSize, &outbytes, buffer);
|
||||
|
||||
if (headerCode1 == 0x24) {
|
||||
// it a mono atrac3plus, convert it to stereo
|
||||
s16 *outbuf = (s16*)buffer;
|
||||
|
||||
Reference in New Issue
Block a user