Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 7th April 2003, 16:38   #1
henryt
Junior Member
 
henryt's Avatar
 
Join Date: May 2002
Location: out there
Posts: 30
supported media extensions?

Where do we get a list of supported media extension?

There was an ini-file entry in winamp.ini (extlist=) in the previous Winamp versions but I can't find something like that with the 2.90 version.

I would prefer to have the ini-file entry back 'cause it's easy to read.

Any other ideas?
henryt is offline   Reply With Quote
Old 17th April 2003, 21:13   #2
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
That ini entry (extlist) is still in Winamp 2.90.

But it isn't really very useful. The list only contains the extensions that are associated with Winamp - NOT the extensions that Winamp is capable of playing. Perhaps you don't see extlist in your Winamp.ini file because you have nothing associated with Winamp?
A Plugin Developer is offline   Reply With Quote
Old 18th April 2003, 08:35   #3
henryt
Junior Member
 
henryt's Avatar
 
Join Date: May 2002
Location: out there
Posts: 30
Thanks for that information! You are right, I have not associated any file extensions with Winamp.
Too bad there is no way to get the supported extensions...
henryt is offline   Reply With Quote
Old 18th April 2003, 16:23   #4
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
I never said there is no way to get the supported extensions. There are plenty of ways, just not any easy ways... it would be nice if you could just get a pointer to the supported extension list using the Winamp IPC (perhaps you can, but they just haven't documented it).
A Plugin Developer is offline   Reply With Quote
Old 28th April 2003, 23:10   #5
Poseidon
Junior Member
 
Join Date: Apr 2003
Posts: 1
There is a way, and it is documented. Look for IPC_GET_EXTLIST in the 2.90 sdk
Poseidon is offline   Reply With Quote
Old 29th April 2003, 04:54   #6
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
Well shit... there it is - I must have missed that one little important line. Good catch Poseidon.
A Plugin Developer is offline   Reply With Quote
Old 29th April 2003, 05:58   #7
henryt
Junior Member
 
henryt's Avatar
 
Join Date: May 2002
Location: out there
Posts: 30
That's not what I call 'documented'. There is nothing written about what it does! But i'll try it. Thanks!
henryt is offline   Reply With Quote
Old 29th April 2003, 06:16   #8
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
henryt - this should help you out... (delphi code below)

p.s. I hate null terminated delimiters.

code:

var
test: PChar;
i: Integer;
begin
integer(test) := SendMessage(GetWinampHandle,WM_USER,0,292);
// use some big number (like 5000) since Winamp is assigning the
// memory... the max # of input plugins is 512, so 5000 is plenty
for i := 0 to 5000 do
begin
if test[i] = #0 then
begin
test[i]:=',';
if (i >= 1) and (test[i-1]=',') then
begin
test[i-1] := #0;
test[i] := #0;
break;
end;
end;
end;
MessageBox(
GetWinampHandle,
test,
MyName,
MB_OK + MB_TOPMOST
);
globalfree(Integer(test)); // make sure to free it
end;

A Plugin Developer is offline   Reply With Quote
Old 9th May 2003, 08:02   #9
henryt
Junior Member
 
henryt's Avatar
 
Join Date: May 2002
Location: out there
Posts: 30
Finally I have found some time to try this out. Works good so far. Thanks!

While playing around with it I found out that not ALL extensions are listed. Example: The .M3U (Playlist) Extension is missing!
henryt is offline   Reply With Quote
Old 9th May 2003, 19:59   #10
A Plugin Developer
Senior Member
 
A Plugin Developer's Avatar
 
Join Date: Jun 2000
Location: Home
Posts: 269
That doesn't surprise me, as far as I know Winamp handles m3u and pls internally... they even show up as supported extensions if you don't have any input plugins.

So you can assume m3u and pls extensions are always in the list.
A Plugin Developer is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump