Gaming Community
Forum
 
Go Back   D3scene > Games > RPGs, MMORGPs, Online Strategy Games > Lineage 2 > Lineage 2 Bots
Register Blogs Live view Downloads Marketplace FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

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 70000 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
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 8
Rep Power: 2
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!
  #2  
Old 09-19-2009, 08:13 PM
killerwave7's Avatar
Master Hacker

 
Join Date: Jul 2009
Location: California
Posts: 559
Blog Entries: 1
Thanks: 10
Thanked 39 Times in 28 Posts
Reputation: 291
Rep Power: 2
killerwave7 is a jewel in the roughkillerwave7 is a jewel in the roughkillerwave7 is a jewel in the rough
Send a message via ICQ to killerwave7 Send a message via AIM to killerwave7 Send a message via MSN to killerwave7 Send a message via Yahoo to killerwave7 Send a message via Skype™ to killerwave7
Quote:
Originally Posted by jostikaas View Post
uhm , i dont get it
instead of just saying "uh i dont get it" try to say what exactly is your problem, if you truly dont get any of it, try sending a private message instead of posting here that way you can actually talk to the guy who started the thread and get his advice simple and easy... if we had 10 ppl who posted "i dont get it" that wouldnt do anything useful at all
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 Off


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 07:48 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
vBulletin style developed by Transverse Styles