?
Solved

Add songs at winamp

Posted on 2003-03-04
3
Medium Priority
?
1,039 Views
Last Modified: 2012-06-27
How can I add a mp3 from a delphi program in the winamp3-list.

I use this code to play the first song:
song:='c:\...anysong...mp3';
ShellExecute(Handle, 'open',PChar(song),nil,nil,SW_SHOWNORMAL);

When I add the next song, it has to take place in the queue of winamp. Now, the first song stops playing and the second begins.
0
Comment
Question by:misterstefano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
MannSoft earned 80 total points
ID: 8066149
There are a couple ways.  

First, you can use the above method.  To find out how Winamp queue's files you need to open up the "File Types" dialog (View Menu -> Folder Options -> File Types while in Windows Explorer) and find the entry for .MP3.  When you find it, check to see what commandline parameters are used for the Enque action.  The drawback here is you'll need to know the full path\filename of the winamp.exe file, you wont just be able to specify the mp3 file in the shellexecute() command.

Second (and the method I would probably use) would be to use the Winamp API.  It's documented quite well on the winamp webpage.  If you dont understand it, you can probably find a wrapper component that handles all the tough work at www.torry.net
0
 

Author Comment

by:misterstefano
ID: 8066525
I used the first methode, this works.
For the 2th methode, you have to download a new component for delphi?
0
 
LVL 6

Expert Comment

by:MannSoft
ID: 8066606
No you dont have to download a component for the second method.  It would just be a lot easier than reading their documentation and writing your own implementation.

The docs for Winamp 2 can be found at http://www.winamp.com/nsdn/winamp2x/dev/sdk/api.jhtml
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question