mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a type comparison warning.
This commit is contained in:
parent
d663cda2de
commit
f366cab98d
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ int WASAPIAudioBackend::RunThread() {
|
|||
float *ptr = (float *)pData;
|
||||
int chans = pDeviceFormat->Format.nChannels;
|
||||
memset(ptr, 0, pNumAvFrames * chans * sizeof(float));
|
||||
for (int i = 0; i < pNumAvFrames; i++) {
|
||||
for (UINT32 i = 0; i < pNumAvFrames; i++) {
|
||||
ptr[i * chans + 0] = (float)shortBuf[i * 2] * (1.0f / 32768.0f);
|
||||
ptr[i * chans + 1] = (float)shortBuf[i * 2 + 1] * (1.0f / 32768.0f);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue