Forum
 
Go Back   D3scene > Games > RPGs, MMORGPs, Online Strategy Games > Lineage 2 > Lineage 2 Bots

Sounds for WPF

This is a discussion on Sounds for WPF within the Lineage 2 Bots forum part of the Lineage 2 category; .dll file for play sounds : Code: library WPSound; uses mmsystem; procedure wpPlaySound(SoundFile: pchar;Loop: integer = 0); stdcall; begin if ...

Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 35000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-08-2008, 04:57 AM
RedAngel's Avatar
Wannabe Member
 
Join Date: Jul 2008
Posts: 22
Reputation: 8
Rep Power: 1
RedAngel is an unknown quantity at this point
Sounds for WPF

.dll file for play sounds :

Code:
library WPSound;

uses
mmsystem;

procedure wpPlaySound(SoundFile: pchar;Loop: integer = 0); stdcall;
begin
if Loop=1 then PlaySound(SoundFile,0,SND_ASYNC or SND_LOOP)
else PlaySound(SoundFile,0,SND_ASYNC);
end;

procedure wpStopSound; stdcall;
begin
PlaySound(0,0,SND_PURGE);
end;

exports wpPlaySound, wpStopSound;

begin
end.

How to use in script? :

Code :
var
hlib : handle;

const DLLname = 'dll\wpsound.dll'; // ôàéë DLL

procedure OnCreate;
begin
hlib:=gDLL.LoadLib(DLLname);
end;

procedure OnDestroy;
begin
gDLL.FreeLib(hlib);
end;

BEGIN
gDLL.CallFunc3(hlib,'wpPlaySound',_gCustomDir+'Err or.wav',0,null);
//gDLL.CallFunc3(hlib,'wpStopSound',null,null,null);
END.

Code:
gDLL.CallFunc3(hlib,'wpPlaySound',_gCustomDir+'Err or.wav',0,null);

1 times the sound plays. if 2 to 1 on the parameters, the sound will be reproduced cyclically until the procedure call wpStopSound:

Code:
gDLL.CallFunc3(hlib,'wpStopSound',null,null,null);


For example ---->RapidShare: Easy Filehosting
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

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 On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sounds crazy,but works aaroncjones72 WoW Scams 15 07-20-2007 05:18 PM


All times are GMT +1. The time now is 02:44 AM.


vBulletin style developed by Transverse Styles
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

»About D3scene »Navigation