Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Иван Мажукин
mpd
Commits
5d1e5f4e
Commit
5d1e5f4e
authored
Nov 15, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crossfade: use audio_format_valid() in assertion
parent
51844766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
crossfade.c
src/crossfade.c
+1
-3
No files found.
src/crossfade.c
View file @
5d1e5f4e
...
...
@@ -40,9 +40,7 @@ unsigned cross_fade_calc(float duration, float total_time,
return
0
;
assert
(
duration
>
0
);
assert
(
af
->
bits
>
0
);
assert
(
af
->
channels
>
0
);
assert
(
af
->
sample_rate
>
0
);
assert
(
audio_format_valid
(
af
));
chunks
=
audio_format_time_to_size
(
af
)
/
CHUNK_SIZE
;
chunks
=
(
chunks
*
duration
+
0
.
5
);
...
...
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