Skip to content

Commit a0e9f10

Browse files
authored
Update SoundSystemSL.cpp
1 parent e8859aa commit a0e9f10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

platforms/sound/opensl/SoundSystemSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void SoundSystemSL::playAt(const SoundDesc &sound, const Vec3& pos, float volume
202202
checkErr((*pVolumeItf)->SetVolumeLevel(pVolumeItf, remappedVolume));
203203
checkErr((*pAudioPlayer)->GetInterface(pAudioPlayer, SL_IID_BUFFERQUEUE, &pBufferQueueItf));
204204
checkErr((*pBufferQueueItf)->RegisterCallback(pBufferQueueItf, removePlayer, (void*) pAudioPlayer));
205-
checkErr((*pBufferQueueItf)->Enqueue(pBufferQueueItf, sound.m_pData, sound.m_dataSize));
205+
checkErr((*pBufferQueueItf)->Enqueue(pBufferQueueItf, sound.m_buffer.m_pData, sound.m_buffer.m_dataSize));
206206
checkErr((*pPlayItf)->SetPlayState(pPlayItf, SL_PLAYSTATE_PLAYING));
207207

208208
m_playingSounds.push_back(pAudioPlayer);

0 commit comments

Comments
 (0)