Feedback on gnome-devel-demos/3.14/guitar-tuner.js.page



Hello,

While running the sample code I ran in to the following error:

(gjs:12833): Gjs-WARNING **: JS ERROR: TypeError: Gst.ElementFactory.make is not a constructor
playSound /guitar-tuner.js:29
@./guitar-tuner.js:45
@./guitar-tuner.js:74

the offending lines

var source = new Gst.ElementFactory.make("audiotestsrc","source");
 var sink = new Gst.ElementFactory.make("autoaudiosink","output");
the "new" keyword should not be used



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]