Skip to content

Commit

Permalink
Update rate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfearless committed Sep 1, 2024
1 parent 1fa7be5 commit 1b90d6b
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 26 deletions.
22 changes: 12 additions & 10 deletions MFPlayer-x64/MFPlayer.asm
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,10 @@ MFP_POSITIONTYPE_100NS GUID <00000000,0000,0000,<00,00,00,00,00,00,00,0


MFP_DIV100 REAL4 0.01
MFP_DIV1000 REAL4 0.001
MFP_DIV10000 REAL4 0.0001
MFP_MUL100 REAL4 100.0
MFP_MUL1000 REAL4 1000.0

.CODE

Expand Down Expand Up @@ -1623,7 +1625,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; Sends a notification to the Media Event callback function as
Expand All @@ -1645,7 +1647,7 @@ MFPMediaPlayer_SetRate PROC FRAME pMediaPlayer:QWORD, dwRate:DWORD
finit
fwait
fild dwRate
fmul MFP_DIV100
fmul MFP_DIV1000
fstp fRate
Invoke IMFPMediaPlayer_SetRate, pMediaPlayer, fRate
Expand Down Expand Up @@ -1675,7 +1677,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; See Also:
Expand All @@ -1696,8 +1698,8 @@ MFPMediaPlayer_GetRate PROC FRAME USES RBX pMediaPlayer:QWORD, pdwRate:QWORD
finit
fwait
fld fRate
fmul MFP_MUL100
fistp dwRate
fmul MFP_MUL1000
fistp dword ptr dwRate

mov rbx, pdwRate
mov eax, dwRate
Expand Down Expand Up @@ -1732,7 +1734,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; See Also:
Expand All @@ -1757,8 +1759,8 @@ MFPMediaPlayer_GetSupportedRates PROC FRAME USES RBX pMediaPlayer:QWORD, bForwar
finit
fwait
fld fSlowestRate
fmul MFP_MUL100
fistp dwSlowestRate
fmul MFP_MUL1000
fistp dword ptr dwSlowestRate
mov rbx, pdwSlowestRate
mov eax, dwSlowestRate
Expand All @@ -1769,8 +1771,8 @@ MFPMediaPlayer_GetSupportedRates PROC FRAME USES RBX pMediaPlayer:QWORD, bForwar
finit
fwait
fld fFastestRate
fmul MFP_MUL100
fistp dwFastestRate
fmul MFP_MUL1000
fistp dword ptr dwFastestRate
mov rbx, pdwFastestRate
mov eax, dwFastestRate
Expand Down
Binary file modified MFPlayer-x64/MFPlayer.lib
Binary file not shown.
8 changes: 4 additions & 4 deletions MFPlayer-x64/MFPlayer.rap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ AutoLoad=2,1,6
5=
4=
3=0,0,0,0,1519
1=0,0,0,0,145171
1=0,0,0,0,59663
7=0,0,0,0,0
6=0,0,0,0,1643
2=0,0,0,0,5929
Expand Down Expand Up @@ -94,7 +94,7 @@ MilestoneOnTime=2
MilestoneOnDate=0
MilestoneOnDateWhen=1
MilestoneOnDateStatus=0
MilestoneOnDateDate=29
MilestoneOnDateDate=1
MilestoneOnDateTimeYear=2024
MilestoneOnDateTimeMonth=8
MilestoneOnDateTimeDate=25
Expand All @@ -118,9 +118,9 @@ ProductVer2Range=0
ProductVer3Range=0
ProductVer4Range=0
[PTimer]
PTimer=31567329
PTimer=31754439
[Collapse]
1=65552,306783232,153391689,1227133512,613566756,1149838482,273228932,143804424,75514400,2
1=65552,306783232,153391689,1227133512,613566756,1149838482,273219588,143804424,75514400,2
3=
7=
6=
Expand Down
16 changes: 9 additions & 7 deletions MFPlayer-x86/MFPlayer.asm
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,10 @@ MFP_POSITIONTYPE_100NS GUID <00000000,0000,0000,<00,00,00,00,00,00,00,0


MFP_DIV100 REAL4 0.01
MFP_DIV1000 REAL4 0.001
MFP_DIV10000 REAL4 0.0001
MFP_MUL100 REAL4 100.0
MFP_MUL1000 REAL4 1000.0

.CODE

Expand Down Expand Up @@ -1594,7 +1596,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; Sends a notification to the Media Event callback function as
Expand All @@ -1616,7 +1618,7 @@ MFPMediaPlayer_SetRate PROC pMediaPlayer:DWORD, dwRate:DWORD
finit
fwait
fild dwRate
fmul MFP_DIV100
fmul MFP_DIV1000 ;MFP_DIV100
;fild dw100
;fdiv
fstp fRate
Expand Down Expand Up @@ -1648,7 +1650,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; See Also:
Expand All @@ -1669,7 +1671,7 @@ MFPMediaPlayer_GetRate PROC USES EBX pMediaPlayer:DWORD, pdwRate:DWORD
finit
fwait
fld fRate
fmul MFP_MUL100
fmul MFP_MUL1000 ;MFP_MUL100
fistp dword ptr dwRate

mov ebx, pdwRate
Expand Down Expand Up @@ -1705,7 +1707,7 @@ ALIGN 8
;
; Notes:
;
; 100 indicates normal playback speed, 50 indicates half speed, and 200
; 1000 indicates normal playback speed, 500 indicates half speed, and 2000
; indicates twice speed, etc.
;
; See Also:
Expand All @@ -1730,7 +1732,7 @@ MFPMediaPlayer_GetSupportedRates PROC USES EBX pMediaPlayer:DWORD, bForwardDirec
finit
fwait
fld fSlowestRate
fmul MFP_MUL100
fmul MFP_MUL1000 ;MFP_MUL100
fistp dword ptr dwSlowestRate
mov ebx, pdwSlowestRate
Expand All @@ -1742,7 +1744,7 @@ MFPMediaPlayer_GetSupportedRates PROC USES EBX pMediaPlayer:DWORD, bForwardDirec
finit
fwait
fld fFastestRate
fmul MFP_MUL100
fmul MFP_MUL1000 ;MFP_MUL100
fistp dword ptr dwFastestRate
mov ebx, pdwFastestRate
Expand Down
Binary file modified MFPlayer-x86/MFPlayer.lib
Binary file not shown.
10 changes: 5 additions & 5 deletions MFPlayer-x86/MFPlayer.rap
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ MilestoneOnTime=2
MilestoneOnDate=0
MilestoneOnDateWhen=1
MilestoneOnDateStatus=0
MilestoneOnDateDate=29
MilestoneOnDateDate=1
MilestoneOnDateTimeYear=2024
MilestoneOnDateTimeMonth=8
MilestoneOnDateTimeDate=8
Expand All @@ -113,9 +113,9 @@ ProductVer2Range=0
ProductVer3Range=0
ProductVer4Range=0
[PTimer]
PTimer=169963763
PTimer=174707966
[Collapse]
1=558095,1227133440,76695844,613566756,306783378,574918729,136614466,122233860,62923024,1
1=558127,1227132928,76695844,613566756,306783378,574919241,136609858,122233860,62923024,1
2=
3=
4=
Expand All @@ -124,8 +124,8 @@ PTimer=169963763
7=
6=
[Size]
1=0,0,0,0,141035
2=0,0,0,0,5945
1=0,0,0,0,59447
2=0,0,0,0,8053
3=0,0,0,0,3678
4=0,0,0,0,272
5=0,0,0,0,273
Expand Down
Binary file added releases/MFPlayer-docs-v1.0.0.1.zip
Binary file not shown.
Binary file added releases/MFPlayer-x64-source-v1.0.0.1.zip
Binary file not shown.
Binary file modified releases/MFPlayer-x64-source.zip
Binary file not shown.
Binary file added releases/MFPlayer-x64-v1.0.0.1.zip
Binary file not shown.
Binary file modified releases/MFPlayer-x64.zip
Binary file not shown.
Binary file added releases/MFPlayer-x86-source-v1.0.0.1.zip
Binary file not shown.
Binary file modified releases/MFPlayer-x86-source.zip
Binary file not shown.
Binary file added releases/MFPlayer-x86-v1.0.0.1.zip
Binary file not shown.
Binary file modified releases/MFPlayer-x86.zip
Binary file not shown.

0 comments on commit 1b90d6b

Please sign in to comment.