Search found 45 matches

by vuott
Tuesday 06th October 2020 6:18pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 8
Views: 605

Re: How to do audio output selection for MediaPlayer control?

Do you know of any "pure Gambas" way via the Media* controls of getting the equivalent of the "aplay -l" output? Well, I can show you this page, that I wrote, of the WIKI of the Gambas Italian programmers forum. There you can try two codes, which however use the external functions of ALSA via " Ext...
by vuott
Tuesday 06th October 2020 3:24pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 8
Views: 605

Re: How to do audio output selection for MediaPlayer control?

All give me a "Can't set Status" error when the .play is hit. My laptop also has the HDMI device, and it is identified with card 0 , device 3 and subdevice 0 . So, I tried that code of mine with these instructions: With mp = New MediaPlayer .URL = Media.URL("/path/of/audio/file") .Audio.Output = Ne...
by vuott
Tuesday 06th October 2020 7:13am
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 8
Views: 605

Re: How to do audio output selection for MediaPlayer control?

source filesrc audiosink autoaudiosink ...I used " alsasink " plugin, not autoaudiosink . ~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: MID [HDA Intel MID], device 0: ALC269VB Analog [ALC269VB Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: MID [HDA Intel MID], device ...
by vuott
Monday 05th October 2020 9:46pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 8
Views: 605

Re: How to do audio output selection for MediaPlayer control?

I don't know if I understand correctly ... However, in general if you want to identify the audio device, to which to direct the audio, in my opinion you have to use the " .Audio.Output " Property of the " MediaPlayer " Class, assigning it the GStreamer plugin - for example - " alsasink " through th...
by vuott
Sunday 27th September 2020 2:18pm
Forum: General
Topic: Cr '\r' with no Lf' '\n' ?
Replies: 5
Views: 491

Re: Cr '\r' with no Lf' '\n' ?

... use CrLf and not just Cr? "\r" character can be useful when printing strings repeatedly on the same line. Here is an example by activating gb.media Component: Public Sub Main() Dim mp As MediaPlayer With mp = New MediaPlayer .URL = Media.URL("/path/of/audio/file") .Play() End With Repeat ' It p...
by vuott
Saturday 19th September 2020 6:30pm
Forum: Component
Topic: .Action property , any docs anywhere?
Replies: 4
Views: 437

Re: .Action property , any docs anywhere?

...and if you want to translate from italian:

https://www.gambas-it.org/wiki/index.ph ... sse_Action
by vuott
Sunday 30th August 2020 10:40pm
Forum: General
Topic: Balloons
Replies: 8
Views: 1060

Re: Balloons

cogier wrote:
Sunday 30th August 2020 9:48am
Thank vott, you are correct the colours are fine with QT but why not with GTK?
It is the normal coloring of Ubuntu tooltips by using GTK.
by vuott
Saturday 29th August 2020 10:26pm
Forum: General
Topic: Balloons
Replies: 8
Views: 1060

Re: Balloons

cogier wrote:
Saturday 29th August 2020 2:03pm
Running the following code produces dark grey text on a black background.
...you are using GTK, aren't you ? ;)
Change graphic resource: use QT.

Obviously, then, you know that you can use the HTML protocol with the text of the "Ballon" ...
by vuott
Saturday 18th July 2020 8:18pm
Forum: General
Topic: Upgrade to Ubuntu 20.04 broke Gambas
Replies: 4
Views: 902

Re: Upgrade to Ubuntu 20.04 broke Gambas

issboss wrote:
Saturday 18th July 2020 6:08pm
I've tried loading one critical component (gb.qt4) manually, but I'm told "can't find it".
Ubuntu 20.04 no longer supports "qt4" libraries and "keyring", so don't be afraid if those components are no longer installed.
You will use qt5 library.
by vuott
Saturday 11th July 2020 3:46pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 2382

Re: How to read keypress from exclusive external USB keypad .

Try this: Library "libc:6" Public Struct timeval tv_sec As Long tv_usec As Long End Struct Public Struct input_event time_ As Struct Timeval type As Short code As Short value As Integer End Struct Private Const _IOC_NRSHIFT As Integer = 0 Private Const _IOC_NRBITS As Integer = 8 Private _IOC_TYPESHI...