mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix issue where duty cycle of a pulsewave was not correctly set at init time
This commit is contained in:
+4
-1
@@ -65580,7 +65580,10 @@ MA_API ma_result ma_pulsewave_init(const ma_pulsewave_config* pConfig, ma_pulsew
|
||||
pConfig->frequency
|
||||
);
|
||||
|
||||
return ma_waveform_init(&config, &pWaveform->waveform);
|
||||
ma_result result = ma_waveform_init(&config, &pWaveform->waveform);
|
||||
ma_pulsewave_set_duty_cycle(pWaveform, pConfig->dutyCycle);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
MA_API void ma_pulsewave_uninit(ma_pulsewave* pWaveform)
|
||||
|
||||
Reference in New Issue
Block a user