Sound typification

Post Reply
Reedych
Member
Posts: 58
Joined: Wed Aug 03, 2016 08:09
GitHub: SlackCoyote
In-game: SlackCoyote

Sound typification

by Reedych » Post

In some minetest Games apart of other sound as mobs and instruments, there's some music. So I sometimes want to disable immersive background sounds, but still want to hear general sounds.
For example a modder adds general sound such as block place:

Code: Select all

{
    gain = 1.0, -- default
    fade = 0.0, -- default, change to a value > 0 to fade the sound in
    pitch = 1.0, -- default,
    type = "general"
}
And now a modder adds sound of rain:

Code: Select all

{
    gain = 1.0, -- default
    fade = 0.0, -- default, change to a value > 0 to fade the sound in
    pitch = 1.0, -- default,
    type = "weather"
}
And now a modder adds some background music:

Code: Select all

{
    gain = 1.0, -- default
    fade = 0.0, -- default, change to a value > 0 to fade the sound in
    pitch = 1.0, -- default,
    type = "music"
}
And a player can enable/disable needed types of sounds.
Slackware64 14.2, MT 0.4.16. My best mod.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Sound typification

by sofar » Post

This doesn't need a modification of the engine to support this. E.g. ITB does this already and has a music toggle so that players can enable or disable music themselves. It's just a matter of properly coding up your mods in your game.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: Sound typification

by bosapara » Post

sofar wrote:This doesn't need a modification of the engine to support this. E.g. ITB does this already and has a music toggle so that players can enable or disable music themselves. It's just a matter of properly coding up your mods in your game.
Is it possible to change the pitch of sound with this "pitch = 1.5," in minetest?

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Sound typification

by Krock » Post

bosapara wrote:Is it possible to change the pitch of sound with this "pitch = 1.5," in minetest?
This is a feature which was added by this PR just a few days after the 0.4.16 release. This means the following for the different Minetest versions:

0.5.0-dev Yes: https://github.com/minetest/minetest/bl ... #L749-L761 (included)
0.4.x No: https://github.com/minetest/minetest/bl ... #L708-L718 (not included)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: Sound typification

by bosapara » Post

Krock wrote:
bosapara wrote:Is it possible to change the pitch of sound with this "pitch = 1.5," in minetest?
This is a feature which was added by this PR just a few days after the 0.4.16 release. This means the following for the different Minetest versions:

0.5.0-dev Yes: https://github.com/minetest/minetest/bl ... #L749-L761 (included)
0.4.x No: https://github.com/minetest/minetest/bl ... #L708-L718 (not included)
Awesome, but how soon will be publicated official 0.5.0 ?

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests