The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-28-2004, 02:45 AM   #1
Newbie
 
Join Date: Aug 2001
Location: San Diego
Posts: 44
Get Volume Display Working in Markus Zehnder Plugin

I dont know if anyones interested but I noticed in the program it only displays the volume level of the computers main levels and not of winamps, which the program controls. In the config the author says hes not sure if possible to get volume from winamp to display on the screen. Well I got it to work and if anyone using this and wants it do it then,

in file:

gen_lcddisplay.cpp

i commented out

// bugfix: WinNT 4.0 hangs with certain sound drivers! --> option to disable volume variable, MZ April 17
/* if (g_Config.byVolSource != 255 )
{
g_Config.pcVolume = new CVolume();
g_Config.pcVolume->SetCallbackVar(&g_WinAmpInfo.byVolume, g_Config.byVolSource);
}
*/

and under put:

LRESULT tempRet = SendMessage(g_Plugin.hwndParent, WM_WA_IPC, (WPARAM)-666, IPC_SETVOLUME);

BYTE vvtemp = (BYTE)tempRet;
vvtemp = vvtemp * 100;
int inter = (int)vvtemp * 100;
vvtemp = (BYTE)(inter / 255);
g_WinAmpInfo.byVolume = (BYTE)vvtemp;


also find:

if (pcField->m_iType & VOLUME)
pcField->m_csLCDText.Replace( VOLUME_TAG, itoa((int)vvtemp1, szTemp, 10) );

change too:

if (pcField->m_iType & VOLUME) {
LRESULT tempRet = SendMessage(g_Plugin.hwndParent, WM_WA_IPC, (WPARAM)-666, IPC_SETVOLUME);

BYTE vvtemp1 = (BYTE)tempRet;
int inter = (int)vvtemp1 * 100;
vvtemp1 = (BYTE)(inter / 255);
g_WinAmpInfo.byVolume = (BYTE)vvtemp1;

pcField->m_csLCDText.Replace( VOLUME_TAG, itoa((int)vvtemp1, szTemp, 10) );

}


could of used a function i guess but i just typed it out. not sure if this is 100% best way of doing it but theres like 100 files of code in this thing!! heh
Plus seems to work

I was only able to compile an old version v0.6.2a, if someone can compile a newest one that be great. I emailed the author but havent heard anything back...

Hope this makes sense.
Heres the .dll and .cpp file.

.dll File
.cpp File

OPEN SOURCE = FREEDOM! haha

and so now I can change my volume with the keypad and see it going up and down on the lcd.
__________________
FrodoSkinner v1.1
Jawbreak is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Markus Zehnder plugin fbwr75215 LCD/Display 3 08-18-2004 03:12 PM
Winamp LCD display plugin / IRMan plugin - together? Jarrod Software & Software Development 9 06-03-2002 05:39 AM
Markus Zehnder Plugin Lines 3&4 surfer6262 Software & Software Development 2 02-20-2002 11:02 PM
Markus Zehnder Plugin Lines 3&4 surfer6262 LCD/Display 3 02-20-2002 11:00 PM
markus zehnder plugin .5 preview3 peter3 Software & Software Development 13 01-23-2002 04:25 AM


All times are GMT -5. The time now is 02:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics