clickbutt
12-23-2003, 08:05 AM
Hi!
I'm trying to add support for our DSP plugin to your player - and everything works great - except one thing that should be very easy to fix.
http://www.spacialaudio.com/products/winamp/
Our DSP plugin allows you to stream the audio being played in the player over the internet in multiple formats (MP3, mp3PRO, WMA, Ogg). It also sends out the title information of the currently playing song - and this is where the problem lies.
This is the function I am using to retrieve the filename of the currently playing song:
(Delphi code)
function TWASongInfo.GetFilename: String;
const
IPC_GETLISTPOS = 125;
IPC_GETPLAYLISTFILE = 211;
IPC_GETPLAYLISTTITLE = 212;
var
Index : Integer;
FName : PChar;
begin
Index := SendMessage(MainWindow, WM_USER, 0, IPC_GETLISTPOS);
FName := Pchar(SendMessage(MainWindow, WM_USER, Index, IPC_GETPLAYLISTFILE));
Result := FName;
end;
This function incorrectly returns the filename of the song at index+1
For example:
Say the index being returned is 20, then using index 20 on the second call returns the song filename at index 21. Trying to grab the filename of the last song in the playlist also seems to cause the player to return nothing.
Although I can easily fix this by subtracting 1 from the index before making the second call, this will break compatibility with winamp. I thus recommend you update this in your code.
I'm also working on a custom installer that will install our plugin to the correct location for the Quintessential Player. How can I get this installer listed in your DSP section section?
I'm trying to add support for our DSP plugin to your player - and everything works great - except one thing that should be very easy to fix.
http://www.spacialaudio.com/products/winamp/
Our DSP plugin allows you to stream the audio being played in the player over the internet in multiple formats (MP3, mp3PRO, WMA, Ogg). It also sends out the title information of the currently playing song - and this is where the problem lies.
This is the function I am using to retrieve the filename of the currently playing song:
(Delphi code)
function TWASongInfo.GetFilename: String;
const
IPC_GETLISTPOS = 125;
IPC_GETPLAYLISTFILE = 211;
IPC_GETPLAYLISTTITLE = 212;
var
Index : Integer;
FName : PChar;
begin
Index := SendMessage(MainWindow, WM_USER, 0, IPC_GETLISTPOS);
FName := Pchar(SendMessage(MainWindow, WM_USER, Index, IPC_GETPLAYLISTFILE));
Result := FName;
end;
This function incorrectly returns the filename of the song at index+1
For example:
Say the index being returned is 20, then using index 20 on the second call returns the song filename at index 21. Trying to grab the filename of the last song in the playlist also seems to cause the player to return nothing.
Although I can easily fix this by subtracting 1 from the index before making the second call, this will break compatibility with winamp. I thus recommend you update this in your code.
I'm also working on a custom installer that will install our plugin to the correct location for the Quintessential Player. How can I get this installer listed in your DSP section section?