[seed] N-Oscillator: Use float property, not int. Breaking our chord!
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] N-Oscillator: Use float property, not int. Breaking our chord!
- Date: Tue, 12 May 2009 03:10:28 -0400 (EDT)
commit bc9747fdc9774e481814d48ed438640fa05c53f4
Author: Tim Horton <hortont svn gnome org>
Date: Tue May 12 03:09:56 2009 -0400
N-Oscillator: Use float property, not int. Breaking our chord!
---
examples/n-oscillator.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/n-oscillator.js b/examples/n-oscillator.js
index 812963f..0794626 100755
--- a/examples/n-oscillator.js
+++ b/examples/n-oscillator.js
@@ -19,10 +19,10 @@ OscillatorWidget = new GType({
GObject.ParamFlags.READABLE |
GObject.ParamFlags.WRITABLE);
- var ps = GObject.param_spec_int("frequency",
- "Oscillator Frequency",
- "The frequency of the audiotestsrc.",
- 0, 3000, 1000, flags);
+ var ps = GObject.param_spec_float("frequency",
+ "Oscillator Frequency",
+ "The frequency of the audiotestsrc.",
+ 0, 3000, 1000, flags);
klass.c_install_property(ps);
},
@@ -67,7 +67,7 @@ OscillatorWidget = new GType({
audiosrc.freq = frequency_slider.adjustment.value = this.frequency;
volume_slider.adjustment.upper = 10;
- volume_slider.adjustment.value = 1;
+ volume_slider.adjustment.value = 0.5;
volume.volume = 0;
pipeline.add(audiosrc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]