Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aec78ade
Commit
aec78ade
authored
Oct 23, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Use time_offset to align track start with music time.
parent
d330e445
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
seqtrack.c
dlls/dmime/seqtrack.c
+2
-3
wavetrack.c
dlls/dmime/wavetrack.c
+1
-2
No files found.
dlls/dmime/seqtrack.c
View file @
aec78ade
...
@@ -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
;
...
...
dlls/dmime/wavetrack.c
View file @
aec78ade
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment