Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ A few MSP questions

A few MSP questions

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Keberus   (31 posts)  Bio
Date Sun 03 Jan 2010 04:30 AM (UTC)
Message
Okay, I have the MSP plugin installed and working for my game, so that's not the real issue. But I do have a few questions/suggestions/whatever. Has anyone figured out how to automatically download the sound from the website of the game? Obviously, there is a certain client out there that can do so, albeit not too well. The other question, is that can you now control the volume of the sounds when played, instead of always using the max. I read some stuff about playsound which allowed for volume control, which is cool, but what about the sound function? Can you control the volume level on that as well, that way the person can still hear the sounds even if the client is only running in the background.

Thanks in advance,
KeB
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 03 Jan 2010 04:50 AM (UTC)
Message
Check out this:

Template:post=9943 Please see the forum thread: http://gammon.com.au/forum/?id=9943.


Someone there got Luasocket to download stuff from the web, so that could be the basis for grabbing sound files.

As for volume control, PlaySound does that:

Template:function=PlaySound PlaySound

The documentation for the PlaySound script function is available online. It is also in the MUSHclient help file.



However I think the default implementation cuts off the sound if you change applications. The Sound function does not have any provision for volume control.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,567 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.