Skip to content

Commit 4b9223e

Browse files
authored
Update SoundSystemDS.cpp
1 parent a0e9f10 commit 4b9223e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

platforms/sound/directsound/SoundSystemDS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void SoundSystemDS::playAt(const SoundDesc& sound, const Vec3& pos, float volume
188188
}
189189

190190
//Move the wave data into the buffer.
191-
memcpy(bufferPtr, sound.m_pData, length);
191+
memcpy(bufferPtr, sound.m_buffer.m_pData, length);
192192

193193
// Unlock the secondary buffer after the data has been written to it.
194194
result = soundbuffer->Unlock((void*)bufferPtr, bufferSize, NULL, 0);
@@ -281,4 +281,4 @@ void SoundSystemDS::_cleanSources()
281281
i--;
282282
}
283283
}
284-
}
284+
}

0 commit comments

Comments
 (0)