mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix an error with the previous commit.
This commit is contained in:
@@ -70063,8 +70063,10 @@ MA_API ma_result ma_engine_init(const ma_engine_config* pConfig, ma_engine* pEng
|
|||||||
*/
|
*/
|
||||||
#if !defined(MA_NO_DEVICE_IO)
|
#if !defined(MA_NO_DEVICE_IO)
|
||||||
{
|
{
|
||||||
|
if (pEngine->pDevice != NULL) {
|
||||||
listenerConfig.pChannelMapOut = pEngine->pDevice->playback.channelMap;
|
listenerConfig.pChannelMapOut = pEngine->pDevice->playback.channelMap;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result = ma_spatializer_listener_init(&listenerConfig, &pEngine->allocationCallbacks, &pEngine->listeners[iListener]); /* TODO: Change this to a pre-allocated heap. */
|
result = ma_spatializer_listener_init(&listenerConfig, &pEngine->allocationCallbacks, &pEngine->listeners[iListener]); /* TODO: Change this to a pre-allocated heap. */
|
||||||
|
|||||||
Reference in New Issue
Block a user