(360) Some sound fixes

This commit is contained in:
TwinAphex51224 2012-01-06 22:40:40 +01:00
parent cc921f25ed
commit 7cad2bcd6e
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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>