- Posts: 172
- Thank you received: 14
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
tbaMUD © 2024