Search found 262 matches

by vuott
Thursday 18th January 2024 11:32pm
Forum: General
Topic: Convert image to byte array - what am I doing wrong.
Replies: 10
Views: 1958

Re: Convert image to byte array - what am I doing wrong.

AndyGable wrote: Thursday 18th January 2024 7:52pm The error I get is "unkown symbol 'ToString' in class 'Image' (ImageControl:12)
Probably you have to update your Gambas.
See:
https://gitlab.com/gambas/gambas/-/comm ... b1e4c46e08
by vuott
Thursday 18th January 2024 3:49pm
Forum: General
Topic: Convert image to byte array - what am I doing wrong.
Replies: 10
Views: 1958

Re: Convert image to byte array - what am I doing wrong.

However, I would take this smoother path.... Public Sub Form_Open() Dim path As String Dim im As Image Dim bb As Byte[] path = "/path/of/image/file" im = Image.load(path) ' ...I get the coveted byte array: bb = Byte[].FromString(im.ToString(File.Ext(path), 100)) ' Test...... PictureBox1.Im...
by vuott
Thursday 18th January 2024 3:13pm
Forum: General
Topic: Convert image to byte array - what am I doing wrong.
Replies: 10
Views: 1958

Re: Convert image to byte array - what am I doing wrong.

The " Memory Stream " resource is used to read, but-- specifically --to write data a reserved memory area, pointed to by a " Pointer ". Therefore, the " Memory Stream " resource must be passed the " .Data " Property of the " Image " Class, as that on...
by vuott
Tuesday 9th January 2024 6:39pm
Forum: Beginners
Topic: How to check if two files are identical
Replies: 4
Views: 1505

Re: How to check if two files are identical

The native Comp() function may also be fine, , loading the two files with the "File.Save()" Method. http://gambaswiki.org/wiki/lang/comp If you want to check the equality of two files using the external functions of the libgio API: https://www.gambas-it.org/wiki/index.php/Controllare_l%27u...
by vuott
Saturday 6th January 2024 11:30pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1659

Re: ALSA Mixer control

by vuott
Saturday 6th January 2024 11:01pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1659

Re: ALSA Mixer control

GrantXTV wrote: Saturday 6th January 2024 10:54pm I hope this is helpful?
Darn, we should find out how (the specific external ALSA function) that program handles latency.
We should read its source file. :|
by vuott
Saturday 6th January 2024 10:14pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1659

Re: ALSA Mixer control

As for "a function in the Gambas resources", where would I start on this and where would I look to rework the mixer level for latency (if possible)? In ALSA A.P.I.: https://www.alsa-project.org/alsa-doc/alsa-lib/mixer_8h.html https://www.alsa-project.org/alsa-doc/alsa-lib/group___simple_m...
by vuott
Saturday 6th January 2024 7:37pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1659

Re: ALSA Mixer control

Ah, yes, I wrote that page.

I :? suppose you use that code in the 'receiving' program to change the level of ALSA mixer.

You would have to check whether there is a function in the Gambas resources, pertaining to the mixer, that also allows you to manage latency.
by vuott
Saturday 6th January 2024 3:55pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1659

Re: ALSA Mixer control

What code are you using to change the ALSA volume level ?
by vuott
Wednesday 3rd January 2024 7:07pm
Forum: Beginners
Topic: Gambas3 Code Layout
Replies: 4
Views: 1577

Re: Gambas3 Code Layout

If you refer to alphanumeric character strings, you can break the string into two or more parts, enclosed by quotation marks. For convenience you can also have each one followed by the "&" symbol. Exemplum: Dim s as String s = "aaaa bbbb cccc ddd " & "eeee ffff gggg ...