DSP Plugin: Easy to fix bug [Archive] - Quintessential Forum

PDA

View Full Version : DSP Plugin: Easy to fix bug


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?

acozz
12-23-2003, 04:35 PM
There is a premade installer that will install plugins to the correct Quintessential directory in the Devzone (upper right of the screen). That page will also tell you how to submit plugins.

Paul
12-23-2003, 11:54 PM
Hi Clickbutt, I believe that issue was corrected in 4.11, but I could be mistaken. If it's still an issue, I will most certainly fix it.

clickbutt
01-06-2004, 08:20 AM
Yes, you are right - I downloaded the latest developers build and it worked as expected
You can check out the plugin here:
http://www.spacialaudio.com/download/dsp_qp_encoders.exe

I tried uploading the plugin to your plugin section, but it failed - but thats most likely due to my ISP blocking certain ports

Paul
01-07-2004, 08:31 PM
Yes, you are right - I downloaded the latest developers build and it worked as expected
You can check out the plugin here:
http://www.spacialaudio.com/download/dsp_qp_encoders.exe
Does it not work as expected in 4.11?

I tried uploading the plugin to your plugin section, but it failed - but thats most likely due to my ISP blocking certain ports
Uploading should work on port 80, just like all HTTP. Are you using IE?