Search found 17 matches

by GrantXTV
Sunday 7th January 2024 3:50pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1881

Re: ALSA Mixer control

I will take a look as these links, to get some idea of what is going on and see what is possible.
by GrantXTV
Saturday 6th January 2024 10:54pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1881

Re: ALSA Mixer control

No, I have worked with C in the passed in editing code, but my programming history is in BASIC, Such as Spectrum Basic, QBasic, PICBasic, Visual Basic and now Gambas. I set the latency offset directly from the mixer from within Ubuntu as within this image, I hope this is helpful? From the desktop (V...
by GrantXTV
Saturday 6th January 2024 7:47pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1881

Re: ALSA Mixer control

Yes, it is in the receiver part, controlling the main mixer level.

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)?

As this is very new to me, working with the ALSA setup.
by GrantXTV
Saturday 6th January 2024 5:39pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1881

Re: ALSA Mixer control

Hi Vuott,

I found this link and I did a English translate to get a better understanding of how to change ALSA volume levels.

https://www.gambas-it.org/wiki/index.ph ... er_di_ALSA

I hope this is helpful?
by GrantXTV
Saturday 6th January 2024 3:47pm
Forum: General
Topic: ALSA Mixer control
Replies: 9
Views: 1881

ALSA Mixer control

Hi All, I have found some code to change the ALSA volume level and I am making good use of it, now I am looking for more of a general mixer code. One issue is I now have an audio offset delay from the video I am sending across by UDP, I found I can fix this by setting a -1500 ms latency offset via A...
by GrantXTV
Friday 5th January 2024 2:25pm
Forum: General
Topic: UDP IP setup
Replies: 6
Views: 1851

Re: UDP IP setup

Yes, tried this code out and got the same output:
-+

Years working with strings and they seem simple, but from this test Left$ and Mid$ have the same issue.
by GrantXTV
Thursday 4th January 2024 9:43pm
Forum: General
Topic: UDP IP setup
Replies: 6
Views: 1851

Re: UDP IP setup

Print String.Len($VidData)

I get 18152 more than I require to work with using ascii 8bit, no issues on the older version with the same code.
by GrantXTV
Thursday 4th January 2024 6:25pm
Forum: General
Topic: UDP IP setup
Replies: 6
Views: 1851

Re: UDP IP setup

Hi Bruce, "Does the UDPUser_Read() event trigger?" yes I am getting date come out now, the issue seem to be also with the String processing for example at the next step: $TXDataRY = Left$($VidData, 2880) $TXDataBY = Mid$($VidData, 2881, 2880) '$TXDataBY = Mid$("test test", 6, 4) ...
by GrantXTV
Thursday 4th January 2024 1:45pm
Forum: General
Topic: UDP IP setup
Replies: 6
Views: 1851

UDP IP setup

Hi All, I upgraded last night from Gambas 3.14.3 to 3.18.4 and found that the UDP receiver as part of gb.net is no longer working, here is the code in question: Public Sub UDPUser_Read() Dim $Data As String Read #UDPUser, $Data, Lof(UDPUser) $VidData = $Data ' Print $Data End With testing it with pr...
by GrantXTV
Wednesday 3rd January 2024 7:57pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 17407

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

Hi Vuott, I reworked the code for the UDP Receiver and that seemed to get it to work okay, there is one small issue with the UDP Transmitter, but it works well enough. Here is the Transmitter: Public bo As Boolean Public pl As MediaPipeline Public Sub Form_Open() bo = True End Public Sub send_Click(...