Search found 156 matches

by Cedron
Wednesday 3rd August 2022 4:38pm
Forum: General
Topic: Zoom bar use tip
Replies: 0
Views: 10564

Zoom bar use tip

Here is a statement that I put in a ScrollBbar to control the Zoom property of an ImageView: TheImageView.Zoom = Exp((TheScrollBar.Value - 50) * 0.6) The same distance on the scroll represents the same multiplication factor. You can vary the midpoint (50 on the default ScrollBar range of 0 to 100), ...
by Cedron
Wednesday 7th October 2020 1:22am
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 16961

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

Several years ago I wrote the predecessor to this program in pure C++ using the ALSA library. I was kind of worried I was going to have to port that code to my own C shared library and replace the MediaPlayer. Thanks to your help, I don't have to do that. The /proc/asound/pcm file, loaded with a sin...
by Cedron
Tuesday 6th October 2020 4:46pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 16961

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

It is working now, on both the laptop and Pi4. Not sure what I did wrong while flailing. Thank you very much. That is a helpful link. The default created by ".play" is obviously "autoalsosink" which allows the system preferences to switch output during playback on my laptop, but ...
by Cedron
Tuesday 6th October 2020 1:58pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 16961

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

Yes. I've tried all sorts of combinations, with two parameters, commas or periods, with or without the "hw". All give me a "Can't set Status" error when the .play is hit. From looking at /etc/share/alsa/alsa.conf, I've also tried using "subdevice" on another line and ge...
by Cedron
Tuesday 6th October 2020 12:54am
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 16961

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

Thanks vuott. I got your example to work, but I can't get it to direct to either output by switching the value from "hw:0" or "hw:1" hw:0 plays through the laptops internal speaker, not the HDMI. This code snippet: myPlayer.Play() myInput = myPlayer.Input myOutput = myPlayer.Audi...
by Cedron
Monday 5th October 2020 2:38pm
Forum: General
Topic: How to do audio output selection for MediaPlayer control?
Replies: 20
Views: 16961

How to do audio output selection for MediaPlayer control?

I'm working on improving my music player some. Issue #1: There seems to be a little bit of strange behavior while working on a Raspberry Pi 4. Every third or fourth play or so the playback halts. The event handler reports an event type 1. I was able to code a work around (will be included when I pos...
by Cedron
Wednesday 30th September 2020 12:26am
Forum: General
Topic: Cr '\r' with no Lf' '\n' ?
Replies: 5
Views: 5193

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

I learned to program with punch cards. The "cr" solo was important on line printers to be able to do stuff like underlines. The I move up to a teletype remotely hooked up to a IBM 360. There the "lf" + "cr" was literally needed. The "cr" made the carraige retu...
by Cedron
Wednesday 8th July 2020 8:44pm
Forum: Project showcase
Topic: M3U Player : Newest version
Replies: 4
Views: 5766

Re: M3U Player : Newest version

Maybe you should try harder? ;-) Funny thing, the same problem doesn't occur with the word indexing program I posted and it uses the same original class file. There's probably a rational reason, but I am not motivated to find it. I'm going with my revised version from now on. Getting back to the M3U...
by Cedron
Sunday 5th July 2020 2:23pm
Forum: Project showcase
Topic: M3U Player : Newest version
Replies: 4
Views: 5766

Re: M3U Player : Newest version

Damn teenagers...always being rough and breaking things. I've posted a revised version in the Resizer thread with a fix. I'm not going to upgrade the M3U in this post unless I add other features. Since I have a soft link in my source directory structure, the updated version is automatically included...
by Cedron
Sunday 5th July 2020 2:21pm
Forum: Project showcase
Topic: Resizer : The best resizing solution!
Replies: 7
Views: 8337

Re: Resizer : The best resizing solution!

Thanks cage,

I'm finding it really useful as well. I like the WYSIWYG quality of the design process. However, Cogier found a slight problem in the code. The upgraded version is attached in my original post at the beginning of this thread.

Ced