Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Media";
Текущий архив: 2004.10.03;
Скачать: [xml.tar.bz2];

Вниз

Плагин к Winamp у   Найти похожие ветки 

 
Nolf   (2004-07-12 07:33) [0]

Что нужно приписать к DLLке, чтобы её вижел винамп, в разделе GenPlugins. На сайте винампы лежат SDK к DLLкам на С++. Разобраться не смог :-(


 
zx ©   (2004-07-12 09:50) [1]

http://www.izone.kiev.ua/progr/delphi/226.htm


 
Shiza   (2004-07-12 11:05) [2]

Вот тебе рабочий код.
И ещё. Зайди на сайт журнала Мой компьютер и почитай мою статьи о том как писать плагины визуализации для винамп. А если тебе интересно, то я могу рассказать как писать плагины ввода/вывода, DSP-плагины.
С уважением, Алексей Фоминов.

library gen_mf;

{WinAmp General Purpose Plugin Demo Source Code for Delphi 5.0
by Ivan R. Spiridonov  E-Mail: ivanspirit@yahoo.com .
Feel free to use it anywhere at any time in any kind but please let me know !

History:
 I"ve made it because of that Justin Frankel "NullSoft Inc." had said that Delphi is
an alternative language . Or with other words you might be able or might not be to do
any plugin for WinAmp in Delphi.

To Do :
 Add a thread to do some job with WinAmp .

 Enjoy...!
}

uses
 ShareMem,
 Forms,
 Unit1 in "Unit1.pas" {Form1};

{$R *.RES}

 type TwinampGeneralPurposePlugin = Record
  version     : integer ;
  description : Pchar   ;
       InitPinteger: function : integer; stdcall;
       Pconfig     : procedure ;stdcall;
       Pquit       : procedure ;stdcall;
       hwndParent  : Integer;
       hDllInstance: LongWord;
end;

type PTwinampGeneralPurposePlugin = ^TwinampGeneralPurposePlugin;

var
    plugin : TwinampGeneralPurposePlugin;

const
icversion       : integer  = $10; //If you change it it woun"t work but I don"t know why :-(  !
ichwndParent    : integer  = 0;
lwchDllInstance : LongWord = 0;
pccdescription  : PChar = "ivanspirit WinAmp General Purpose Plugin Demo"+#0;

function winampGetGeneralPurposePlugin() : PTwinampGeneralPurposePlugin; stdcall; //Don"t change function name and its result type.
begin
Result:=@plugin;
end;

function Init : Integer;  stdcall;    //Do some inits here and return with result of them .
begin
result:=0;  // It means that everything is fine.
end;

procedure config;         stdcall;   //WinAmp will execute it when doubleclick occurs on the Plugin description .
begin
Application.CreateForm(TForm1, Form1);  // Let us organize a window for user interface .
Form1.ShowModal;                        // Keep it shown until user stops interact with .
end;

procedure quit;           stdcall;   //Do some exit routines save data and et cetera.
begin
end;

exports winampGetGeneralPurposePlugin , init , config , quit; // Declare exports here .

begin
plugin.version      := icversion;
plugin.description  := pccdescription;
plugin.InitPinteger := @Init;
plugin.Pconfig      := @config;
plugin.Pquit        := @quit;
end.


 
Shiza   (2004-07-12 11:05) [3]

Вот тебе рабочий код.
И ещё. Зайди на сайт журнала Мой компьютер и почитай мою статьи о том как писать плагины визуализации для винамп. А если тебе интересно, то я могу рассказать как писать плагины ввода/вывода, DSP-плагины.
С уважением, Алексей Фоминов.

library gen_mf;

{WinAmp General Purpose Plugin Demo Source Code for Delphi 5.0
by Ivan R. Spiridonov  E-Mail: ivanspirit@yahoo.com .
Feel free to use it anywhere at any time in any kind but please let me know !

History:
 I"ve made it because of that Justin Frankel "NullSoft Inc." had said that Delphi is
an alternative language . Or with other words you might be able or might not be to do
any plugin for WinAmp in Delphi.

To Do :
 Add a thread to do some job with WinAmp .

 Enjoy...!
}

uses
 ShareMem,
 Forms,
 Unit1 in "Unit1.pas" {Form1};

{$R *.RES}

 type TwinampGeneralPurposePlugin = Record
  version     : integer ;
  description : Pchar   ;
       InitPinteger: function : integer; stdcall;
       Pconfig     : procedure ;stdcall;
       Pquit       : procedure ;stdcall;
       hwndParent  : Integer;
       hDllInstance: LongWord;
end;

type PTwinampGeneralPurposePlugin = ^TwinampGeneralPurposePlugin;

var
    plugin : TwinampGeneralPurposePlugin;

const
icversion       : integer  = $10; //If you change it it woun"t work but I don"t know why :-(  !
ichwndParent    : integer  = 0;
lwchDllInstance : LongWord = 0;
pccdescription  : PChar = "ivanspirit WinAmp General Purpose Plugin Demo"+#0;

function winampGetGeneralPurposePlugin() : PTwinampGeneralPurposePlugin; stdcall; //Don"t change function name and its result type.
begin
Result:=@plugin;
end;

function Init : Integer;  stdcall;    //Do some inits here and return with result of them .
begin
result:=0;  // It means that everything is fine.
end;

procedure config;         stdcall;   //WinAmp will execute it when doubleclick occurs on the Plugin description .
begin
Application.CreateForm(TForm1, Form1);  // Let us organize a window for user interface .
Form1.ShowModal;                        // Keep it shown until user stops interact with .
end;

procedure quit;           stdcall;   //Do some exit routines save data and et cetera.
begin
end;

exports winampGetGeneralPurposePlugin , init , config , quit; // Declare exports here .

begin
plugin.version      := icversion;
plugin.description  := pccdescription;
plugin.InitPinteger := @Init;
plugin.Pconfig      := @config;
plugin.Pquit        := @quit;
end.


 
diaz   (2004-07-12 16:36) [4]

Исходники плугина к Winamp
www.en.net.ua/diaz



Страницы: 1 вся ветка

Форум: "Media";
Текущий архив: 2004.10.03;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 2.711 c
11-1081013421
Delphi5.01
2004-04-03 21:30
2004.10.03
TKOLPaintBox


1-1095448396
4МО
2004-09-17 23:13
2004.10.03
TaskBar


1-1095441687
hgd
2004-09-17 21:21
2004.10.03
Подскажите как проще перехватить нажатие клавиши


14-1093155435
Art_Z
2004-08-22 10:17
2004.10.03
Помогите!!!


14-1095076964
Мюмзик
2004-09-13 16:02
2004.10.03
дороже не лучше





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский