[PATCH 1/4] wineoss: Pass the time relative to the start time to the callback.

Andrew Eikum aeikum at codeweavers.com
Wed Apr 27 08:49:12 CDT 2022


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Wed, Apr 27, 2022 at 08:03:17AM +0100, Huw Davies wrote:
> This is equivalent to commits 01ad503004cf8ea6b0bd8f544ee131fc86abc580
> and bce11840bd5f56c70e1290d302556c97ba3b1389 in the coreaudio and alsa
> drivers.
> 
> Signed-off-by: Huw Davies <huw at codeweavers.com>
> ---
>  dlls/wineoss.drv/midi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dlls/wineoss.drv/midi.c b/dlls/wineoss.drv/midi.c
> index e796c9a7085..44491a98cfa 100644
> --- a/dlls/wineoss.drv/midi.c
> +++ b/dlls/wineoss.drv/midi.c
> @@ -508,7 +508,7 @@ static DWORD midReset(WORD wDevID)
>  	MidiInDev[wDevID].lpQueueHdr = lpMidiHdr->lpNext;
>  	lpMidiHdr->dwFlags &= ~MHDR_INQUEUE;
>  	lpMidiHdr->dwFlags |= MHDR_DONE;
> -	MIDI_NotifyClient(wDevID, MIM_LONGDATA, (DWORD_PTR)lpMidiHdr, dwTime);
> +	MIDI_NotifyClient(wDevID, MIM_LONGDATA, (DWORD_PTR)lpMidiHdr, dwTime - MidiInDev[wDevID].startTime);
>      }
>      in_buffer_unlock();
>  
> -- 
> 2.25.1
> 
> 



More information about the wine-devel mailing list