Commit e9ba1634 authored by Jay Baird's avatar Jay Baird Committed by David Reid

Fix issue where duty cycle of a pulsewave was not correctly set at init time

parent f9076ef3
...@@ -65580,7 +65580,10 @@ MA_API ma_result ma_pulsewave_init(const ma_pulsewave_config* pConfig, ma_pulsew ...@@ -65580,7 +65580,10 @@ MA_API ma_result ma_pulsewave_init(const ma_pulsewave_config* pConfig, ma_pulsew
pConfig->frequency 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) MA_API void ma_pulsewave_uninit(ma_pulsewave* pWaveform)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment