projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddcda53
)
auditestsrc: indent fix
author
Stefan Sauer
<ensonic@users.sf.net>
Tue, 4 Oct 2011 21:09:42 +0000
(23:09 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Tue, 4 Oct 2011 21:10:05 +0000
(23:10 +0200)
gst/audiotestsrc/gstaudiotestsrc.c
patch
|
blob
|
history
diff --git
a/gst/audiotestsrc/gstaudiotestsrc.c
b/gst/audiotestsrc/gstaudiotestsrc.c
index 91ace92a44e2ae762da42dbbee7c9f648415e8b8..0304b8ade67dd2553f6eee5ddf810274417b8460 100644
(file)
--- a/
gst/audiotestsrc/gstaudiotestsrc.c
+++ b/
gst/audiotestsrc/gstaudiotestsrc.c
@@
-850,9
+850,9
@@
gst_audio_test_src_create_red_noise_##type (GstAudioTestSrc * src, g##type * sam
for (i = 0; i < src->generate_samples_per_buffer * src->channels; ) { \
for (c = 0; c < src->channels; ++c) { \
while (TRUE) { \
- gdouble
r = g_rand_double_range (src->gen, -1.0, 1.0); \
+ gdouble r = g_rand_double_range (src->gen, -1.0, 1.0); \
state += r; \
- if (state
<-8.0f || state>
8.0f) state -= r; \
+ if (state
< -8.0f || state >
8.0f) state -= r; \
else break; \
} \
samples[i++] = (g##type) (amp * state * 0.0625f); /* /16.0 */ \