mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 07:16:36 +00:00
(360) Some sound fixes
This commit is contained in:
parent
cc921f25ed
commit
7cad2bcd6e
@ -116,7 +116,7 @@ struct XAudio : public IXAudio2VoiceCallback
|
||||
unsigned need = min(bytes, bufsize - bufptr);
|
||||
uint32_t *base_write = buf + ((write_buffer * bufsize + bufptr) >> 2);
|
||||
for (unsigned i = 0; i < need >> 2; i++)
|
||||
base_write[i] = bswap_32(buffer[i]);
|
||||
base_write[i] = (buffer[i]);
|
||||
|
||||
bufptr += need;
|
||||
buffer += need;
|
||||
@ -129,7 +129,7 @@ struct XAudio : public IXAudio2VoiceCallback
|
||||
|
||||
XAUDIO2_BUFFER xa2buffer = {0};
|
||||
xa2buffer.AudioBytes = bufsize;
|
||||
xa2buffer.pAudioData = buf + write_buffer * bufsize;
|
||||
xa2buffer.pAudioData = (uint8_t*)buf + write_buffer * bufsize;
|
||||
|
||||
if (FAILED(pSourceVoice->SubmitSourceBuffer(&xa2buffer)))
|
||||
return 0;
|
||||
|
@ -207,7 +207,7 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<ProgramDatabaseFile>$(OutDir)$(ProjectName).pdb</ProgramDatabaseFile>
|
||||
<SetChecksum>true</SetChecksum>
|
||||
<AdditionalDependencies>xapilib.lib;d3d9.lib;d3dx9.lib;xgraphics.lib;xboxkrnl.lib;xnet.lib;xaudio2.lib;xact3.lib;x3daudio.lib;xmcore.lib;vcomp.lib;$(SolutionDir)\Release\snes9x-next-360-msvc2010.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>xapilib.lib;d3d9.lib;d3dx9.lib;xgraphics.lib;xboxkrnl.lib;xnet.lib;xaudio2.lib;xact3.lib;x3daudio.lib;xmcore.lib;vcomp.lib;xbdm.lib;$(SolutionDir)\Release\snes9x-next-360-msvc2010.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<Deploy>
|
||||
<DeploymentType>CopyToHardDrive</DeploymentType>
|
||||
|
Loading…
Reference in New Issue
Block a user