Welcome to the Builder Academy

Question Soundsend

More
14 Jun 2012 21:18 #81 by Halenbane
Soundsend was created by Halenbane
Has anyone had success with soundsend?

After talking with Vatiken some earlier I wanted to attempt to add a sound trigger to perform_violence, so a battlemusic.wav
loops until the fight ends. I looked around in fight.c but after the few things I have tried, I can't seem to get it.

Any little snip* examples from a successful attempt at this?

Any feedback is appreciated as always.

Please Log in or Create an account to join the conversation.

More
17 Jun 2012 22:47 #96 by Liko
Replied by Liko on topic Re: Soundsend

Halenbane wrote: Has anyone had success with soundsend?

After talking with Vatiken some earlier I wanted to attempt to add a sound trigger to perform_violence, so a battlemusic.wav
loops until the fight ends. I looked around in fight.c but after the few things I have tried, I can't seem to get it.

Any little snip* examples from a successful attempt at this?

Any feedback is appreciated as always.


I will post when I finish up with my fight.c. I plan to use sound for dodges, misses, and other things.

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
17 Jun 2012 23:30 #97 by Halenbane
Replied by Halenbane on topic Re: Soundsend
Nice! I appreciate it Liko :)

Please Log in or Create an account to join the conversation.

More
18 Jun 2012 15:45 #98 by Liko
Replied by Liko on topic Re: Soundsend
I emailed Kavir over on Mudbytes asking for a little more detailed with SoundSend, here is what he replied with

This is the example from protocol.h:

SoundSend( pDesc, "monster/growl.wav" );

So yours should probably be done like this:

SoundSend(ch->desc, "music/test.midi");

Note however that if your client supports ATCP or MSDP, the sound will be sent through that rather than MSP, so you'll need a script or plugin for playing sound. Otherwise, you'll also need to add an in-game command for switching sound on/off, as explained in the README.TXT.

So the first step is to make sure the mud is actually sending you the sound trigger.

After that you'll need to make sure you've got the sound files in the correct place - and that your client supports that particular type of sound file. I usually stick to WAV files, even though they're large, because they seem to be the best supported.


Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
22 Jun 2012 04:43 - 22 Jun 2012 04:45 #171 by Halenbane
Replied by Halenbane on topic Re: Soundsend
Ok well I have been trying to get this to work...

I have placed

SoundSend(ch->desc, "sounds/combat/test.wav");

in my do_who function just for an easy test.

I have test.wav stored on the server under that directory.

I want to be able to play the sounds from the web rather than them having to be downloaded by the user if possible.

It seems you need a plugin if using something like mushclient?

So I have kavirs sound plugin for gw, which doesn't seem like it would be any different.

I get a clean compile, but when I do_who , no sound , nadda..

I've read the posts about this, but there are so many ways the sound can be sent and played etc, I'm lost.
Last edit: 22 Jun 2012 04:45 by Halenbane.

Please Log in or Create an account to join the conversation.

More
22 Jun 2012 04:59 #172 by Vatiken
Replied by Vatiken on topic Re: Soundsend
What client are you trying to enable sound for?

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.218 seconds