topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 12:00 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: NANY 2009 Release: Trout (audio player)  (Read 687842 times)

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #675 on: February 18, 2011, 05:18 PM »
DDE = Dynamic Data Exchange
http://msdn.microsof...648711(v=vs.85).aspx

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.  8)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #676 on: February 18, 2011, 05:31 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.

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #677 on: February 18, 2011, 05:45 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?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #678 on: February 18, 2011, 06: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.

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #679 on: February 18, 2011, 06:46 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?

tadas

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #680 on: February 19, 2011, 10:35 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 AM by tadas »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #681 on: February 19, 2011, 12:12 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)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #682 on: February 19, 2011, 12:13 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.  =]

tadas

  • Participant
  • Joined in 2011
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #683 on: February 20, 2011, 01:24 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. 

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #684 on: February 20, 2011, 04:22 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.

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #685 on: February 20, 2011, 08:05 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?"

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #686 on: February 20, 2011, 08:33 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 AM by skwire »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #687 on: February 21, 2011, 08:26 AM »
Website | Installer | Portable
v1.0.5 build 39 - 2011-02-21
    + Added /pause & /unpause commandline switches.  (Thanks AEN007)

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #688 on: February 22, 2011, 09:56 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  ;)

Winkie

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 93
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #689 on: February 24, 2011, 02:00 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:
Code: Autohotkey [Select]
  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:
Code: Autohotkey [Select]
  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(?) :-\)

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

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #690 on: February 25, 2011, 01:47 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.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #691 on: February 25, 2011, 07:24 PM »
Website | Installer | Portable
v1.0.5 build 77 - 2011-02-25
    ! Fixed IPC_GETLISTPOS to be zero-relative.  (Thanks, Winkie)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #692 on: February 25, 2011, 08:37 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 

Armoured

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 8
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #693 on: February 28, 2011, 10:47 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:

panzer

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 941
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #694 on: March 11, 2011, 03:32 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'.

 :)
« Last Edit: March 11, 2011, 03:37 AM by panzer »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,746
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #695 on: April 08, 2011, 03:01 AM »
I'm having a strange issue. When I click Help -> Check for Updates, I get the following:

Trout Updates.png

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.

Winkie

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 93
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #696 on: April 08, 2011, 12:02 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 PM by Winkie »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #697 on: April 08, 2011, 12:37 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)

bob99

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 345
    • View Profile
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #698 on: April 08, 2011, 01:20 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.


Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,746
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: NANY 2009 Release: Trout (audio player)
« Reply #699 on: April 14, 2011, 04:19 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?