Commit aec78ade authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Use time_offset to align track start with music time.

parent d330e445
...@@ -122,7 +122,6 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state ...@@ -122,7 +122,6 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
if (start_time != 0) FIXME("start_time %ld not implemented\n", start_time); if (start_time != 0) FIXME("start_time %ld not implemented\n", start_time);
if (end_time != -1) FIXME("end_time %ld not implemented\n", end_time); if (end_time != -1) FIXME("end_time %ld not implemented\n", end_time);
if (time_offset != 0) FIXME("time_offset %ld not implemented\n", time_offset);
if (segment_flags) FIXME("segment_flags %#lx not implemented\n", segment_flags); if (segment_flags) FIXME("segment_flags %#lx not implemented\n", segment_flags);
if (segment_state) FIXME("segment_state %p not implemented\n", segment_state); if (segment_state) FIXME("segment_state %p not implemented\n", segment_state);
...@@ -139,7 +138,7 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state ...@@ -139,7 +138,7 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
(DMUS_PMSG **)&msg))) (DMUS_PMSG **)&msg)))
break; break;
msg->mtTime = item->mtTime; msg->mtTime = item->mtTime + time_offset;
msg->dwFlags = DMUS_PMSGF_MUSICTIME; msg->dwFlags = DMUS_PMSGF_MUSICTIME;
msg->dwPChannel = item->dwPChannel; msg->dwPChannel = item->dwPChannel;
msg->dwVirtualTrackID = track_id; msg->dwVirtualTrackID = track_id;
...@@ -169,7 +168,7 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state ...@@ -169,7 +168,7 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
(DMUS_PMSG **)&msg))) (DMUS_PMSG **)&msg)))
break; break;
msg->mtTime = item->mtStart; msg->mtTime = item->mtStart + time_offset;
msg->dwFlags = DMUS_PMSGF_MUSICTIME; msg->dwFlags = DMUS_PMSGF_MUSICTIME;
msg->dwPChannel = item->dwPChannel; msg->dwPChannel = item->dwPChannel;
msg->dwVirtualTrackID = track_id; msg->dwVirtualTrackID = track_id;
......
...@@ -159,7 +159,6 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *state_dat ...@@ -159,7 +159,6 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *state_dat
if (start_time != 0) FIXME("start_time %ld not implemented\n", start_time); if (start_time != 0) FIXME("start_time %ld not implemented\n", start_time);
if (end_time != -1) FIXME("end_time %ld not implemented\n", end_time); if (end_time != -1) FIXME("end_time %ld not implemented\n", end_time);
if (time_offset != 0) FIXME("time_offset %ld not implemented\n", time_offset);
if (segment_flags) FIXME("segment_flags %#lx not implemented\n", segment_flags); if (segment_flags) FIXME("segment_flags %#lx not implemented\n", segment_flags);
if (segment_state) FIXME("segment_state %p not implemented\n", segment_state); if (segment_state) FIXME("segment_state %p not implemented\n", segment_state);
...@@ -181,7 +180,7 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *state_dat ...@@ -181,7 +180,7 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *state_dat
(DMUS_PMSG **)&msg))) (DMUS_PMSG **)&msg)))
break; break;
msg->mtTime = item->header.rtTime; msg->mtTime = item->header.rtTime + time_offset;
msg->dwFlags = DMUS_PMSGF_MUSICTIME; msg->dwFlags = DMUS_PMSGF_MUSICTIME;
msg->dwPChannel = part->header.dwPChannel; msg->dwPChannel = part->header.dwPChannel;
msg->dwVirtualTrackID = track_id; msg->dwVirtualTrackID = track_id;
......
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