mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
fix a typo when using ma_round_to_standard_sample_rate__opensl.
This commit is contained in:
+2
-2
@@ -35916,8 +35916,8 @@ static ma_result ma_SLDataFormat_PCM_init__opensl(ma_format format, ma_uint32 ch
|
||||
#endif
|
||||
|
||||
pDataFormat->numChannels = channels;
|
||||
((SLDataFormat_PCM*)pDataFormat)->samplesPerSec = ma_round_to_standard_sample_rate__opensl(sampleRate) * 1000; /* In millihertz. Annoyingly, the sample rate variable is named differently between SLAndroidDataFormat_PCM_EX and SLDataFormat_PCM */
|
||||
pDataFormat->bitsPerSample = ma_get_bytes_per_sample(format)*8;
|
||||
((SLDataFormat_PCM*)pDataFormat)->samplesPerSec = ma_round_to_standard_sample_rate__opensl(sampleRate * 1000); /* In millihertz. Annoyingly, the sample rate variable is named differently between SLAndroidDataFormat_PCM_EX and SLDataFormat_PCM */
|
||||
pDataFormat->bitsPerSample = ma_get_bytes_per_sample(format) * 8;
|
||||
pDataFormat->channelMask = ma_channel_map_to_channel_mask__opensl(channelMap, channels);
|
||||
pDataFormat->endianness = (ma_is_little_endian()) ? SL_BYTEORDER_LITTLEENDIAN : SL_BYTEORDER_BIGENDIAN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user