Log in

View Full Version : invoke playsound in assembly


UPucker
June 14th, 2005, 06:59
Can someone explain how to add the wav file to the resource? I can use invoke playmusic to play from a wav file, but I am having trouble getting it into the exe. I am using reshacker to make the buttons etc. Is there a faster way? The resulting .res file links well to the .obj, but I am stuck not being able to get the wav converted so its all one executable. Can someone run through the steps, or point me in the right direction?

Woodmann
June 14th, 2005, 18:12
Howdy,

You want to research RIFF or AIFF or IFF file format. (I dont remember which is correct).

It requires you to "code" your .wav info into the .exe
I dont know a ton about this but I think it will be easier to "call" your .wav file from elsewhere.
It's been a while since I played with such things

Woodmann

JimmyClif
June 14th, 2005, 18:55
Try to include it as resource type : WAVE

UPucker
June 14th, 2005, 19:36
yes that is a step in the right direction. I can add it to the rc file and get it to link into the exe, but I cant figure out how to use the .rc with the .res file to get everything together in the exe.

naides
June 14th, 2005, 19:49
You need to work on your default signature also.
I doubt anybody in this board is willing to take off his panties.

Woodmann
June 14th, 2005, 21:19
Howdy,

YOU need to figure out the last part. It's all about utilizing the compiler to do what you want.
There most certainly is a way to do what you want to do.

Now you are asking for people to GIVE you the answer.

Regards, Woodmann

bilbo
June 15th, 2005, 01:10
<...speaking in a low voice (JMI is around here)...>
Google can help you a lot: try searching playsound snd_resource "source code" res wave assembly.

The first of the 9 links is for you:
http://board.flatassembler.net/topic.php?p=25130

Regards, bilbo

JMI
June 15th, 2005, 08:47
Looks like UPucker got caught with "HIS' panties down.

Regards,

UPucker
June 19th, 2005, 17:14
OK I figured it out.