Skip to content

Commit

Permalink
snd: Update mme start-time to match alsa
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianBlokland committed Sep 19, 2024
1 parent 1fcac8c commit 82e4ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/snd/src/device_pal_win32_mme.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ bool snd_device_begin(SndDevice* dev) {
if (dev->periodHeaders[period].flags & mme_header_flag_done) {
// Start playback if we're not playing yet.
if (UNLIKELY(dev->state == SndDeviceState_Idle)) {
dev->nextPeriodBeginTime = time_steady_clock() + snd_mme_period_time;
dev->nextPeriodBeginTime = time_steady_clock();
dev->state = SndDeviceState_Playing;
}
dev->activePeriod = period;
Expand Down

0 comments on commit 82e4ac0

Please sign in to comment.