Welcome Guest.   Make a donation to an author on the site October 21, 2014, 02:12:02 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.
 
Check out and download the GOE 2007 Freeware Challenge productivity tools.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: Prev 1 ... 23 24 25 26 27 [28] 29 30 31 32 33 34 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: NANY 2009 Release: Trout (audio player)  (Read 245634 times)
Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #675 on: February 18, 2011, 05:18:54 PM »


Yes, I know what it is.  What do you want to do with it and Trout?

A program through the DDE protocol can send command and get information to/from the music player.
Is an useful feature, mIRC or another chat program with DDE could send commands and get informations about the played song from your player.  Cool
Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #676 on: February 18, 2011, 05:31:54 PM »

A program through the DDE protocol can send command and get information to/from the music player.

Trout has a portion of the Winamp API built into it for this purpose.  Within mIRC, you should be able to use any of the Winamp
plugin stuff with Trout going and it should work.  The following messages are supported:

40001 - Close
40022 - Toggle repeat
40023 - Toggle shuffle
40029 - Add files box
40044 - Previous track
40045 - Play/Pause
40048 - Next track
40058 - Volumn up
40059 - Volume down
40144 - Seek backward
40148 - Seek forward
40155 - Add URL
40187 - Add folder box

You can use standard Windows SendMessage commands to control Trout in this way.  If there is a certain message within the Winamp API that you would like to see supported, let me know and I'll see if I can add it.  Furthermore, Trout is built with a classname of "Winamp v1.x" so any title-getting application/plugin will work to get the song info.  You can set up a custom titlebar format string in Trout's options.
Logged

Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #677 on: February 18, 2011, 05:45:56 PM »

A program through the DDE protocol can send command and get information to/from the music player.

Trout has a portion of the Winamp API built into it for this purpose.  Within mIRC, you should be able to use any of the Winamp
plugin stuff with Trout going and it should work.  The following messages are supported:

40001 - Close
40022 - Toggle repeat
40023 - Toggle shuffle
40029 - Add files box
40044 - Previous track
40045 - Play/Pause
40048 - Next track
40058 - Volumn up
40059 - Volume down
40144 - Seek backward
40148 - Seek forward
40155 - Add URL
40187 - Add folder box

You can use standard Windows SendMessage commands to control Trout in this way.  If there is a certain message within the Winamp API that you would like to see supported, let me know and I'll see if I can add it.  Furthermore, Trout is built with a classname of "Winamp v1.x" so any title-getting application/plugin will work to get the song info.  You can set up a custom titlebar format string in Trout's options.

Ok this is useful if I want send a command to the player but if I want to get the title and the infos of a currently played song?
Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #678 on: February 18, 2011, 06:04:54 PM »

Ok this is useful if I want send a command to the player but if I want to get the title and the infos of a currently played song?

To do it programatically, find the window with a classname of "Winamp v1.x" (without quotes) and read its title text.  You can format in most of the track info into the title bar using the provided tokens.  There's no way to query Trout directly for this info and I have no plans to add any sort of DDE support at this time.
Logged

Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #679 on: February 18, 2011, 06:46:04 PM »

Ok this is useful if I want send a command to the player but if I want to get the title and the infos of a currently played song?

To do it programatically, find the window with a classname of "Winamp v1.x" (without quotes) and read its title text.  You can format in most of the track info into the title bar using the provided tokens.  There's no way to query Trout directly for this info and I have no plans to add any sort of DDE support at this time.

And what is your opinion  about to implement a method based on the shared memory?
Logged
tadas
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #680 on: February 19, 2011, 10:35:57 AM »

Hello,
I've tried to run this application on my old Win2000 SP4 computer, every time I start this program, I get the error "Trout.exe - Entry point Not Found. The procedure entry point InterlockedPushEntrySList could not be located in the dynamic link library KERNEL32.dll" I'm using latest portable version, in the About window it is listed as build v2..., I'm not sure why it's not 1.0.5 build 30, but this is not the main problem :-)  So when I get that error, I have 2 options to push OK button or to close that error with X. Then Trout window appears and application seems working normal and responding as it should be. At that point I've noted that I get some temp file named ~DF37A5.tmp in the Temp files directory. I'm not sure if it's normal behavior or I get this temp file because of the error. When I close Trout this temp file disappears automatically. Tried to google about this error and MS page says that this error is due to application can't correctly recognize version of the operating system.
http://support.microsoft.com/kb/142606
As I mentioned it's standard W2KSP4 5.00.2195. Is there any way to get rid of that error, cause it's really annoying. I would not bother you, but there is no reliable up to date audio player/streamer for older WIN OS.

UPDATED
Hey, I've removed some files from Plugins directory and now do not get this error anymore! Now I would like to ask do I really need these files, and what I will lose if I remove them?
AudioGenie2.dll
AudioGenie3.dll
gen_activewa.dll
bassenc.dll
tags.dll
Oh, and I still get this temporary file. Is it normal?
« Last Edit: February 19, 2011, 11:50:50 AM by tadas » Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #681 on: February 19, 2011, 12:12:13 PM »

I've tried to run this application on my old Win2000 SP4 computer, every time I start this program, I get the error "Trout.exe - Entry point Not Found. The procedure entry point InterlockedPushEntrySList could not be located in the dynamic link library KERNEL32.dll"

Thanks for reporting this.  Try the latest build, please.

Website | Installer | Portable
v1.0.5 build 33 - 2011-02-19
    ! Worked around a Windows 2000 error caused by the AudioGenie tag library.
      (Thanks, tadas)
Logged

skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #682 on: February 19, 2011, 12:13:41 PM »

Hey, I've removed some files from Plugins directory and now do not get this error anymore!

It was the AudioGenie3.dll causing the error.  I've disabled its loading under Window 2000.  You can put all the plugins back now.  =]
Logged

tadas
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #683 on: February 20, 2011, 01:24:01 AM »


Thanks for reporting this.  Try the latest build, please.


v1.0.5 build 33 - 2011-02-19
    ! Worked around a Windows 2000 error caused by the AudioGenie tag library.
      (Thanks, tadas)[/tt]

Confirm, latest build does not give this error on W2K anymore. Thanks for the update skwire. 
Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #684 on: February 20, 2011, 04:22:39 AM »

Confirm, latest build does not give this error on W2K anymore. Thanks for the update skwire.

Fantastic.  The change I made means that, under Windows 2000, Trout loses the ability to read certain types ID3v2.4 tags.  So, if you have files that use that format, you may have to convert them ID3v2.3.  This is extremely easy to do with something like mp3Tag.
Logged

Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #685 on: February 20, 2011, 08:05:46 AM »

hi,
I think you haven't read my second question for you:
"And what is your opinion  about to implement a method based on the shared memory?"
Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #686 on: February 20, 2011, 08:33:14 AM »

And what is your opinion  about to implement a method based on the shared memory?

Trout has a disabled feature that writes out the currently playing info to an XML file.  I can change it to a different format as well (such as INI).  Would this be good enough for your purposes?

« Last Edit: February 20, 2011, 08:34:59 AM by skwire » Logged

skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #687 on: February 21, 2011, 08:26:57 AM »

Website | Installer | Portable
v1.0.5 build 39 - 2011-02-21
    + Added /pause & /unpause commandline switches.  (Thanks AEN007)
Logged

Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #688 on: February 22, 2011, 09:56:51 AM »

And what is your opinion  about to implement a method based on the shared memory?

Trout has a disabled feature that writes out the currently playing info to an XML file.  I can change it to a different format as well (such as INI).  Would this be good enough for your purposes?



Yes this is useful!
Can You add two settings in the preferences?

1) For enable or disable the writing of the file.
2) For change the output format to xml or ini.

Thanks  Wink
Logged
Winkie
Supporting Member
**
Posts: 82


View Profile Give some DonationCredits to this forum member
« Reply #689 on: February 24, 2011, 02:00:32 PM »

Trout has a portion of the Winamp API built into it for this purpose.  ... The following messages are supported:
40001 - Close
40022 - Toggle repeat
40023 - Toggle shuffle
40029 - Add files box
40044 - Previous track
40045 - Play/Pause
40048 - Next track
40058 - Volume up
40059 - Volume down
40144 - Seek backward
40148 - Seek forward
40155 - Add URL
40187 - Add folder box

You can use standard Windows SendMessage commands to control Trout in this way.

Just to clarify: those are WM_COMMAND values. (hex code 0x111) In AutoHotkey it would look like this:
Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. ; Toggle shuffle
  2. PostMessage, 0x111, 40023, , , ahk_class Winamp v1.x

Ok this is useful if I want send a command to the player but if I want to get the title and the infos of a currently played song?

For that you can use WM_USER values of the Winamp API (hex code 0x400).
This already works with Trout:
104 - Returns the status of playback. If 'return' is 1, it's playing. If 'return' is 3, it's paused. Otherwise, playback is stopped.
105 - If 'data' is 0, returns the position in milliseconds of playback. If 'data' is 1, returns current track length in seconds.
An example of message 105 in AHK:
Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. ; Get Current Track Lenght
  2. SendMessage, 0x400, 1, 105, , ahk_class Winamp v1.x
  3. iTrackLenRaw := ErrorLevel
  4. ; Get Current Track Posistion
  5. SendMessage, 0x400, 0, 105, , ahk_class Winamp v1.x
  6. iTrackPos := ErrorLevel
Standard Winamp API has no message for querying the current track title IIRC. (Doesn't mean Trout cannot have one, as a unified approach(?) undecided)

If there is a certain message within the Winamp API that you would like to see supported, let me know and I'll see if I can add it.

Skwire, glad you asked. I already thought of asking you for some additions:
WM_COMMAND:
40154 - Go to the begin of the playlist immediately [Hmm... shame, this feature doesn't exist in Trout?]
40158 - Go to the end of the playlist immediately [but who would want that?]
WM_USER:
122 - Sets the volume to 'data', which can be between 0 (silent) and 255 (maximum)
124 - Returns length of the current playlist, in tracks
125 - Returns the position in the current playlist, in tracks
250 - Query shuffle status: 0=off, 1=on

I use WM_USER 124, 125 and 250 in a frequent used AHK-script, so implementing these is highly appreciated.

Greetings, Winkie
Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #690 on: February 25, 2011, 01:47:54 AM »

Winkie, let me know how your tests of these go.  Thanks.

Website | Installer | Portable
v1.0.5 build 68 - 2011-02-25
    + Added support for the following WinampAPI messages.  (Thanks, Winkie)
        122 - IPC_SETVOLUME
        124 - IPC_GETLISTLENGTH
        125 - IPC_GETLISTPOS
        250 - IPC_GET_SHUFFLE
        251 - IPC_GET_REPEAT
        252 - IPC_SET_SHUFFLE
        253 - IPC_SET_REPEAT
        40154 - Go to start of playlist.
        40158 - Go to end of playlist.
Logged

skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #691 on: February 25, 2011, 07:24:05 PM »

Website | Installer | Portable
v1.0.5 build 77 - 2011-02-25
    ! Fixed IPC_GETLISTPOS to be zero-relative.  (Thanks, Winkie)
Logged

skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #692 on: February 25, 2011, 08:37:11 PM »

Here you go, Armoured.

Website | Installer | Portable
v1.0.5 build 78 - 2011-02-25
    + Added hidden Write_File_INI and Write_File_XML settings.  Enabling either
      or both will cause Trout to write a track_info.ini and/or a track_info.xml
      file to Trout's folder with the tag data of the currently playing track.
      You can then read/parse this data for use in your own scripts.  (Thanks,
      Armoured)
      To enable these, add the following lines to the [Settings] section of
      Trout's config.ini file:
          Write_File_INI=1
          Write_File_XML=1 
Logged

Armoured
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #693 on: February 28, 2011, 10:47:50 PM »

Here you go, Armoured.

Website | Installer | Portable
v1.0.5 build 78 - 2011-02-25
    + Added hidden Write_File_INI and Write_File_XML settings.  Enabling either
      or both will cause Trout to write a track_info.ini and/or a track_info.xml
      file to Trout's folder with the tag data of the currently playing track.
      You can then read/parse this data for use in your own scripts.  (Thanks,
      Armoured)
      To enable these, add the following lines to the [Settings] section of
      Trout's config.ini file:
          Write_File_INI=1
          Write_File_XML=1  


Thanks!   Thmbsup
Logged
panzer
Participant
*
Posts: 201

View Profile Give some DonationCredits to this forum member
« Reply #694 on: March 11, 2011, 03:32:30 AM »

Could you make an option to backup (and restore) settings configuration to some other folder outside (or inside) Trout - like config-backup.ini? I have opened Trout yesterday and it was set differently that before. It took me a couple of minutes to set it back as it was, but nevertheless it would be helpful to have this feature ...

Oh, and I know what you gonna say: Just copy config.ini to some other folder yourself.

Just askin'.

 smiley
« Last Edit: March 11, 2011, 03:37:04 AM by panzer » Logged
Deozaan
Charter Member
***
Posts: 6,415



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #695 on: April 08, 2011, 03:01:41 AM »

I'm having a strange issue. When I click Help -> Check for Updates, I get the following:



If it's not obvious, the problem is that it doesn't even check for updates for Trout. It only checks for updates for DcUpdater. (Current version is Trout 1.0.5 build 85)

I don't know if this is a problem with Trout or with DcUpdater or DCUHelper or what.
Logged

Winkie
Supporting Member
**
Posts: 82


View Profile Give some DonationCredits to this forum member
« Reply #696 on: April 08, 2011, 12:02:04 PM »

I'm having a strange issue. When I click Help -> Check for Updates, I get the following:
 (see attachment in previous post)
If it's not obvious, the problem is that it doesn't even check for updates for Trout. It only checks for updates for DcUpdater. (Current version is Trout 1.0.5 build 85)

I don't know if this is a problem with Trout or with DcUpdater or DCUHelper or what.

Looks like a problem with Trout to me. It looks like Trout creates the Trout.dcupdate file when you click Help -> Check for updates. And the file it creates is missing all xml-brackets at the beginning of each line...
If you manually add the inequality sign <  to the beginning of each line which does not have one, double clicking dcupdate file works.
« Last Edit: April 08, 2011, 12:06:58 PM by Winkie » Logged
skwire
Global Moderator
*****
Posts: 4,113



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #697 on: April 08, 2011, 12:37:32 PM »

Thanks, guys.  I don't know what the hell happened there.  Obviously, you're going to have to update manually for this version.

Website | Installer | Portable
v1.0.5 build 86 - 2011-04-08
    ! Fixed an issue with the updater.  (Thanks, Deozaan & Winkie)
Logged

bob99
Supporting Member
**
Posts: 332

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #698 on: April 08, 2011, 01:20:33 PM »


I looked through the post & didn't see where this has been asked before.  Is it possible to add a bookmark function?  Or is it there and I just haven't found it?

Along with music I also use Trout to listen to previously downloaded podcasts.  Sometimes there is something I would like to go back and listen to again to make a note of something said.  Now I keep Trout on the screen and jot down the TE or TR for the show I'm listening to and go back later.  If a hotkey could be pressed to save some of the tag info and a TE or TR it would make it easier to find than the slip of paper I wrote it on.

Logged
Deozaan
Charter Member
***
Posts: 6,415



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #699 on: April 14, 2011, 04:19:50 AM »

Thanks, guys.  I don't know what the hell happened there.  Obviously, you're going to have to update manually for this version.

Website | Installer | Portable
v1.0.5 build 86 - 2011-04-08
    ! Fixed an issue with the updater.  (Thanks, Deozaan & Winkie)


Thanks for fixing that! I've encountered another update related issue:

I know I downloaded the Portable version, but the DcUpdate file links to download the exe which runs the installer? Shouldn't it download and unpack the zip file over the current files?
Logged

Pages: Prev 1 ... 23 24 25 26 27 [28] 29 30 31 32 33 34 Next   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.083s | Server load: 0.02 ]