Welcome Guest.   Make a donation to an author on the site July 30, 2014, 08:12:31 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: Prev 1 [2]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: RandomPlayer - play a mp3 file at (almost) random intervals  (Read 11868 times)
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #25 on: February 05, 2011, 07:03:42 PM »

Well, works here. Did you restart the script after changing the ini?

What is the tray tip saying (if you hover the mouse cursor over the icon)?
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #26 on: February 06, 2011, 02:15:46 AM »

Well, works here. Did you restart the script after changing the ini?

I started with a new ini due to the changes/updates, so yes.

What is the tray tip saying (if you hover the mouse cursor over the icon)?

It wanted to play the next file in x minutes, so no sign of sleep mode there either. I'll do some more testing.
Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #27 on: February 11, 2011, 02:30:07 AM »

Last night RandomPlayer ignored the sleep times again. I hovered over the tray icon after that happened: no sign of sleep mode.

I then reloaded the script, and the info changed to sleep mode.
Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #28 on: February 13, 2011, 02:10:46 AM »

Last night I looked at the tray info, and this time it was correctly in sleep mode, but displaying the time in a strange way: "Sleep mode between -HHMM..." (HHMM being the no_sounds_end time)
Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #29 on: February 16, 2011, 08:12:03 AM »

Two more feature ideas:

- a right-click option at the top of the tray menu: "Replay last file" (that doesn't influence when the next file is being played)
- a settings option where you can select if "Replay last file" or "Reload script" is the default action for double-clicking the icon
Logged

Thank you.
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #30 on: February 17, 2011, 03:57:54 AM »



I hope the problems with the "sleep" function are gone, after my bug fix.

The issue with the locked file should be resolved now, with using "Soundplay,...,wait".

I've added the "repeat last sound" function in the tray menu, and also made "stop sound" and "force next". "force next" will just play the next sound without waiting, but won't do anything while in "sleep mode".

Default tray action (double-click) can be configured in the ini file.


So, that's it with the script. Unless you find a serious bug, I won't touch it again. :-)

* RandomPlayerV2_3.zip (281.02 KB - downloaded 185 times.)
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #31 on: February 17, 2011, 08:21:09 AM »

Awesome! I'll update right away and will post again should any bug show up.

Thank you, this turned out into a great coding snack!  thumbs up
Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #32 on: September 20, 2011, 02:49:55 AM »

I love this little program!  Kiss

We could debate if this is a *serious* bug, but IF you ever touch the code again, please fix this:
- "force next song" doesn't override blacklisted processes (there's no way you can *make it* it play the next file while a blacklisted process is active)

Logged

Thank you.
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #33 on: September 20, 2011, 04:48:59 AM »

There's no need to argue, it's clearly a design bug.  Wink

So, there, here you have it. "Force next" as it should be, ignoring everything and just play the next sound.

It's completely untested, but I hope it works.


* RandomPlayerV2_4.zip (405.31 KB - downloaded 233 times.)
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #34 on: September 20, 2011, 05:32:06 AM »

A big thank you!

Logged

Thank you.
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #35 on: December 28, 2011, 07:16:31 AM »

Not sure if this really is a bug, but I feel RandomPlayer could play stuff more random than it does. It's more of a feeling than an exact measure... so maybe it's just selective attention.  Cool
Logged

Thank you.
skwire
Moderator
*****
Posts: 4,021



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #36 on: December 28, 2011, 03:23:31 PM »

Welcome to the pseudo-random random of computers.   cheesy
Logged

wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #37 on: December 28, 2011, 03:42:21 PM »

Welcome to the pseudo-random random of computers.   cheesy

I hate it when I put 20h of music in Winamp, click "shuffle" and within two hours I hear the same song three times. ;-)

Quote
Not sure if this really is a bug, but I feel RandomPlayer could play stuff more random than it does. It's more of a feeling than an exact measure... so maybe it's just selective attention.

The script writes a history file to remember what it played. Let's say you got 15 files in your songlist. It won't repeat any file, until it played all 15 files. Then it erases its history file and starts again. Of course, this is not perfect. If you're in bad luck, file 15 and file 01 can be the same file. Guess such situations happen to you ocassionally, making you wonder why it's sometimes "less random".

If it wouldn't erase the history file, but keep the last 5 entries, it would be better. But this would've been more code lines than the whole "random history" thing.

Anyway, adding more files to your playlist is the best you can do.
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #38 on: January 03, 2012, 10:23:07 AM »

The script writes a history file to remember what it played. Let's say you got 15 files in your songlist. It won't repeat any file, until it played all 15 files. Then it erases its history file and starts again. Of course, this is not perfect. If you're in bad luck, file 15 and file 01 can be the same file. Guess such situations happen to you ocassionally, making you wonder why it's sometimes "less random".
I had that too once smiley What I meant though is that I got the impression that the list itself is not always randomized, like when 2 files that are listed below each other (out of 50+ total) are picked directly after each other more often than what would feel random to me.

Since I don't know what randomization code/method you use I have no idea if that could influence it.
Logged

Thank you.
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #39 on: January 03, 2012, 12:40:41 PM »

I'd like to test it. Could you zip all files (including sound files) and send it to me (attached to a PM)?
Logged
brotherS
Master of Good Ideas
Honorary Member
**
Posts: 2,105


To make a difference, be different.

View Profile Give some DonationCredits to this forum member
« Reply #40 on: January 03, 2012, 04:11:37 PM »

That sadly won't work since a lot of the files are quite personal to me.
Logged

Thank you.
Pages: Prev 1 [2]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.042s | Server load: 0.2 ]