Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
6f9d6543
Commit
6f9d6543
authored
Oct 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase upper tempo limit
parent
b398bb79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/demux/smf.c
modules/demux/smf.c
+9
-6
No files found.
modules/demux/smf.c
View file @
6f9d6543
...
@@ -26,6 +26,9 @@
...
@@ -26,6 +26,9 @@
#include <vlc_charset.h>
#include <vlc_charset.h>
#include <limits.h>
#include <limits.h>
#define TEMPO_MIN 20
#define TEMPO_MAX 250
/* Beats per minute */
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
@@ -348,16 +351,16 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
...
@@ -348,16 +351,16 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
msg_Dbg
(
p_demux
,
"tempo: %uus/qn -> %u BPM"
,
msg_Dbg
(
p_demux
,
"tempo: %uus/qn -> %u BPM"
,
(
unsigned
)
uspqn
,
tempo
);
(
unsigned
)
uspqn
,
tempo
);
if
(
tempo
<
20
)
if
(
tempo
<
TEMPO_MIN
)
{
{
msg_Warn
(
p_demux
,
"tempo too slow ->
20 BPM"
);
msg_Warn
(
p_demux
,
"tempo too slow ->
%u BPM"
,
TEMPO_MIN
);
tempo
=
20
;
tempo
=
TEMPO_MIN
;
}
}
else
else
if
(
tempo
>
240
)
if
(
tempo
>
TEMPO_MAX
)
{
{
msg_Warn
(
p_demux
,
"tempo too fast ->
240 BPM"
);
msg_Warn
(
p_demux
,
"tempo too fast ->
%u BPM"
,
TEMPO_MAX
);
tempo
=
240
;
tempo
=
TEMPO_MAX
;
}
}
date_Change
(
&
p_sys
->
pts
,
p_sys
->
ppqn
*
tempo
,
60
);
date_Change
(
&
p_sys
->
pts
,
p_sys
->
ppqn
*
tempo
,
60
);
}
}
...
...
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