I am adding a preference system to the WaveGenerator for the audio sink. It work for all sinks I try but one, the filesink.
It is something like $hPlayer = New MediaPipeline $hAudio = New MediaControl($hPlayer, "audiotestsrc") $hConv = New MediaControl($hPlayer, "audioconvert") ' Set the output sink $hOutput = New MediaControl($hPlayer, Settings["OutputSink", "autoaudiosink"]) ' Set the pipeline $hAudio.LinkTo($hConv) $hConv.LinkTo($hOutput) When the output sink is filesink, the preference key look like OutputSink="filesink location=/home/dom/wavegenerator.ogg" And when running it, it fail with Unable to create mediacontrol dans FMain:50 which is $hOutput = New MediaControl($hPlayer, Settings["OutputSink", "autoaudiosink"]) I try without the location=.., or without the path with just location=wavegenerator.ogg, and get the same result. Is it something I can do to get this to work? Dominique ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user