Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
67ef5f4e
Commit
67ef5f4e
authored
Jul 04, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiogen: allow specifying random seed as a commandline parameter.
parent
45838561
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
audiogen.c
tests/audiogen.c
+5
-2
No files found.
tests/audiogen.c
View file @
67ef5f4e
...
...
@@ -144,8 +144,8 @@ int main(int argc, char **argv)
int
nb_channels
=
2
;
char
*
ext
;
if
(
argc
<
2
||
argc
>
4
)
{
printf
(
"usage: %s file [<sample rate> [<channels>]]
\n
"
if
(
argc
<
2
||
argc
>
5
)
{
printf
(
"usage: %s file [<sample rate> [<channels>]
[<random seed>]
]
\n
"
"generate a test raw 16 bit audio stream
\n
"
"If the file extension is .wav a WAVE header will be added.
\n
"
"default: 44100 Hz stereo
\n
"
,
argv
[
0
]);
...
...
@@ -168,6 +168,9 @@ int main(int argc, char **argv)
}
}
if
(
argc
>
4
)
seed
=
atoi
(
argv
[
4
]);
outfile
=
fopen
(
argv
[
1
],
"wb"
);
if
(
!
outfile
)
{
perror
(
argv
[
1
]);
...
...
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