Commit a8ac2a15 authored by Clément Bœsch's avatar Clément Bœsch

doc/examples: make fill_samples static.

This is required to build with FFmpeg compilation options.
parent 24593188
...@@ -62,7 +62,7 @@ static int get_format_from_sample_fmt(const char **fmt, ...@@ -62,7 +62,7 @@ static int get_format_from_sample_fmt(const char **fmt,
/** /**
* Fill dst buffer with nb_samples, generated starting from t. * Fill dst buffer with nb_samples, generated starting from t.
*/ */
void fill_samples(double *dst, int nb_samples, int nb_channels, int sample_rate, double *t) static void fill_samples(double *dst, int nb_samples, int nb_channels, int sample_rate, double *t)
{ {
int i, j; int i, j;
double tincr = 1.0 / sample_rate, *dstp = dst; double tincr = 1.0 / sample_rate, *dstp = dst;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment