Results 1 to 3 of 3
  1. #1
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry

    Playing a Wav sound in a D3D


    This is for menu's in D3D hacks

    Snippet for playing music in the background while hack is in use

    Add that to top of source file
    [highlight=c++]#pragma comment( lib, "Winmm.lib" )[/highlight]

    [highlight=c++]#include <Windows.h>[/highlight]
    Include that in the header file

    Code:
    PlaySound((LPCTSTR)L"C:\\Windows\\Media\\chimes.wav",nullptr,SND_SYNC);
    Sound code ^
    ------------------------------------

    Playing wav sound when a selected key is in play (Hotkey-ish)

    Code:
    void Music() // could be beep also
    {
    if(CH_Music)
    {
    	{
    	if(GetAsyncKeyState(VK_RIGHT))
    	{
    PlaySound("C:\\Windows\\Media\\chime.wav",NULL,SND_SYNC); // to add a song/ audio file just change the destination in the location.
    }
    }
    }
    }
    Each game has different, structures so when using it for your desired game you might have to change a word or something.

    Credits :
    Hassan ( Source code for nonhotkey snippet)
    Shunnai writing the hotkey snippet

    Good luck, will post some more useful stuff


    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

  2. #2
    Mike Shinoda's Avatar
    Join Date
    May 2008
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,177
    Reputation
    67
    Thanks
    165
    My Mood
    Amazed
    Awesome
    It always starts with one thing...

  3. #3
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,873
    My Mood
    Relaxed
    amaze





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

Similar Threads

  1. [Help] D3D9 Hack - Playing Wav Sound [Solved]
    By Mike Shinoda in forum C++/C Programming
    Replies: 13
    Last Post: 09-01-2011, 03:19 PM
  2. Tools I3Play Easily play and extract PointBlank's game's sound
    By n3Isuwandana in forum Piercing Blow Tools
    Replies: 4
    Last Post: 02-09-2011, 01:20 AM
  3. Everytime you get a headshot a headshot sound plays
    By BioI-Iazard in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 01-29-2011, 05:03 AM
  4. [Help] can i play the game sound
    By thorefinnur in forum CrossFire Hacks & Cheats
    Replies: 18
    Last Post: 02-26-2010, 05:04 PM
  5. [Help] why i can't play with sound in crossfire plz help
    By hadh in forum CrossFire Hacks & Cheats
    Replies: 6
    Last Post: 01-06-2010, 03:46 AM