SOUND!

For people working on the C++ code.
User avatar
Dogers
Member
Posts: 94
Joined: Mon Jun 20, 2011 12:14
Location: Marseille , France
Contact:

by Dogers » Post

Well , first of all , thanks for having appreciate the sounds and music , but get in mind that I have not created all the SFX , walking sounds are from kddekadenz , I've just created all of the music , ambient hit , most of the ambient-looped sounds and some GUI sounds . All the rest is the work of kddekadenz .
In my opinion , we need to wait for the sound-system to be implemented , then we will how it render in game and let the people judge for themselves , thus if some sound need to be arranged , added or replaced then we will do it !
Last edited by Dogers on Thu Jan 26, 2012 08:31, edited 1 time in total.
Dogers or dttdogers in-game
---------------------------------
My personal page : http://dttdogers.blogspot.com/

User avatar
cisoun
Member
Posts: 232
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun
Location: Switzerland
Contact:

by cisoun » Post

I coded an audio system here: https://github.com/cisoun/minetest

For the moment I didn't implemented it in the game but I know it works (I made some tests). It's just I didn't realised that sounds have to be hosted on the server and I don't feel to code the audio transfer so I gave up for the moment.
Also, I've got some exams soon and I don't really have the time to do this but I'll see the next month if I can do something for.
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

don't push ya self man just do everythin slow and keep it astounding as dreamable

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

by neko259 » Post

sdzen wrote:don't push ya self man just do everythin slow and keep it astounding as dreamable
* demon appears at the left ear * WORK! WORK! Work harder, it must be finished tomorrow!!!
s3tuPDfUv2IyvXHzPmE31MQvnWULv1zj

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

Exactly what happens when I try to relax

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

Jordach
Member
Posts: 4527
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

I try to relax to the sounds of.....they're here.

I am trying to relax *fires gun at zombies*
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

cisoun wrote:I coded an audio system here: https://github.com/cisoun/minetest

For the moment I didn't implemented it in the game but I know it works (I made some tests). It's just I didn't realised that sounds have to be hosted on the server and I don't feel to code the audio transfer so I gave up for the moment.
Also, I've got some exams soon and I don't really have the time to do this but I'll see the next month if I can do something for.
From what I've seen Tango has started working on the audio again which I think is based on your work: https://github.com/Oblomov/minetest/commits/sound

User avatar
jn
Member
Posts: 106
Joined: Tue Jan 03, 2012 19:15

by jn » Post

For the "server-hosted sound files" part my upcoming texture cache improvements (not yet posted anywhere) might be useful. (I'm moving the file caching functionality to a separate class to better be able to extend it and do things like caching by checksum and data expiration)
But server-hosted sound files are probably something that can be implemented after the basic sound system is in place.

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

by jordan4ibanez » Post

i can see that it wants to load it up but there are no files xD but i will happily wait :D
I've been gone for a long time

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

jordan4ibanez wrote:i can see that it wants to load it up but there are no files xD but i will happily wait :D
If you create the sound folder in data/ then you can add some sounds from where ever (i used MC sounds at first but then switched to Dogers & kddekadenz sound pack).

If you add a ogg file named titlemusic.ogg into the sounds folder this will be played in the game menu, then you can also add some walking sounds which will also need to be renamed to match the material type i.e. default_stone_walk.ogg will be played whenever you walk on objects that have that sound assigned to them, same as default_sand_walk.ogg will be played whenever you walk on objects with that assigned.

Also I think celeron55 may have committed some test sound files to his randomstuff branch on github.

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

by jordan4ibanez » Post

lmfao sound is good is pretty good :D
I've been gone for a long time

User avatar
sfan5
Moderator
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Code: Select all


stefan@stefan-PC:~/minetest_sound$ make -j2
[  1%] Built target jthread
[ 19%] Built target lua
[ 19%] mo update
[ 25%] Built target translations
[ 56%] Built target minetestserver
Linking CXX executable ../bin/minetest
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::init()':
audio.cpp:(.text+0x6d): undefined reference to `alcOpenDevice'
audio.cpp:(.text+0x84): undefined reference to `alcCreateContext'
audio.cpp:(.text+0x8f): undefined reference to `alcMakeContextCurrent'
audio.cpp:(.text+0xc8): undefined reference to `alListener3f'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::destroySource(SoundSource*)':
audio.cpp:(.text+0x11b): undefined reference to `alDeleteBuffers'
audio.cpp:(.text+0x12e): undefined reference to `alDeleteSources'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::setListenerPos(irr::core::vector3d<float>)':
audio.cpp:(.text+0x1b8): undefined reference to `alListener3f'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::~SoundSource()':
audio.cpp:(.text+0x1da): undefined reference to `alDeleteBuffers'
audio.cpp:(.text+0x1ea): undefined reference to `alDeleteSources'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getGain()':
audio.cpp:(.text+0x24e): undefined reference to `alGetSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::setGain(float)':
audio.cpp:(.text+0x290): undefined reference to `alSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getPitch()':
audio.cpp:(.text+0x2be): undefined reference to `alGetSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::setPitch(float)':
audio.cpp:(.text+0x2f8): undefined reference to `alSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getState()':
audio.cpp:(.text+0x31e): undefined reference to `alGetSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::SoundSource(SoundBuffer*, SoundSource::Type)':
audio.cpp:(.text+0x479): undefined reference to `alGenBuffers'
audio.cpp:(.text+0x48c): undefined reference to `alGenSources'
audio.cpp:(.text+0x4b7): undefined reference to `alSource3f'
audio.cpp:(.text+0x52c): undefined reference to `alBufferData'
audio.cpp:(.text+0x546): undefined reference to `alSourcei'
audio.cpp:(.text+0x565): undefined reference to `alSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::shutdown()':
audio.cpp:(.text+0x751): undefined reference to `alcGetCurrentContext'
audio.cpp:(.text+0x760): undefined reference to `alcGetContextsDevice'
audio.cpp:(.text+0x773): undefined reference to `alcMakeContextCurrent'
audio.cpp:(.text+0x782): undefined reference to `alcDestroyContext'
audio.cpp:(.text+0x791): undefined reference to `alcCloseDevice'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundBuffer::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
audio.cpp:(.text+0x8cf): undefined reference to `ov_open'
audio.cpp:(.text+0x8df): undefined reference to `ov_info'
audio.cpp:(.text+0x930): undefined reference to `ov_read'
audio.cpp:(.text+0x963): undefined reference to `ov_clear'
CMakeFiles/minetest.dir/audio.cpp.o: In function `_ZN11SoundBuffer4loadESs.constprop.157':
audio.cpp:(.text+0x9e3): undefined reference to `ov_open'
audio.cpp:(.text+0x9f3): undefined reference to `ov_info'
audio.cpp:(.text+0xa40): undefined reference to `ov_read'
audio.cpp:(.text+0xa73): undefined reference to `ov_clear'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::play(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
audio.cpp:(.text+0x18a7): undefined reference to `alGenBuffers'
audio.cpp:(.text+0x18ba): undefined reference to `alGenSources'
audio.cpp:(.text+0x18e5): undefined reference to `alSource3f'
audio.cpp:(.text+0x195c): undefined reference to `alBufferData'
audio.cpp:(.text+0x1976): undefined reference to `alSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::setVolume(float)':
audio.cpp:(.text+0x173): undefined reference to `alListenerf'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::pause()':
audio.cpp:(.text+0x20c): undefined reference to `alSourcePause'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::play()':
audio.cpp:(.text+0x21c): undefined reference to `alSourcePlay'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::stop()':
audio.cpp:(.text+0x22c): undefined reference to `alSourceStop'
CMakeFiles/minetest.dir/audio.cpp.o: In function `PlaybackThread::Thread()':
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x1b): undefined reference to `alSourcePlay'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x39): undefined reference to `alGetSourcei'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x5f): undefined reference to `alDeleteBuffers'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x6f): undefined reference to `alDeleteSources'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [bin/minetest] Fehler 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Fehler 2
make: *** [all] Fehler 2
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Krisi
Member
Posts: 41
Joined: Sat Oct 15, 2011 21:32
Location: Germany

by Krisi » Post

sfan5 wrote:

Code: Select all


stefan@stefan-PC:~/minetest_sound$ make -j2
[  1%] Built target jthread
[ 19%] Built target lua
[ 19%] mo update
[ 25%] Built target translations
[ 56%] Built target minetestserver
Linking CXX executable ../bin/minetest
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::init()':
audio.cpp:(.text+0x6d): undefined reference to `alcOpenDevice'
audio.cpp:(.text+0x84): undefined reference to `alcCreateContext'
audio.cpp:(.text+0x8f): undefined reference to `alcMakeContextCurrent'
audio.cpp:(.text+0xc8): undefined reference to `alListener3f'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::destroySource(SoundSource*)':
audio.cpp:(.text+0x11b): undefined reference to `alDeleteBuffers'
audio.cpp:(.text+0x12e): undefined reference to `alDeleteSources'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::setListenerPos(irr::core::vector3d<float>)':
audio.cpp:(.text+0x1b8): undefined reference to `alListener3f'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::~SoundSource()':
audio.cpp:(.text+0x1da): undefined reference to `alDeleteBuffers'
audio.cpp:(.text+0x1ea): undefined reference to `alDeleteSources'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getGain()':
audio.cpp:(.text+0x24e): undefined reference to `alGetSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::setGain(float)':
audio.cpp:(.text+0x290): undefined reference to `alSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getPitch()':
audio.cpp:(.text+0x2be): undefined reference to `alGetSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::setPitch(float)':
audio.cpp:(.text+0x2f8): undefined reference to `alSourcef'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::getState()':
audio.cpp:(.text+0x31e): undefined reference to `alGetSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::SoundSource(SoundBuffer*, SoundSource::Type)':
audio.cpp:(.text+0x479): undefined reference to `alGenBuffers'
audio.cpp:(.text+0x48c): undefined reference to `alGenSources'
audio.cpp:(.text+0x4b7): undefined reference to `alSource3f'
audio.cpp:(.text+0x52c): undefined reference to `alBufferData'
audio.cpp:(.text+0x546): undefined reference to `alSourcei'
audio.cpp:(.text+0x565): undefined reference to `alSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::shutdown()':
audio.cpp:(.text+0x751): undefined reference to `alcGetCurrentContext'
audio.cpp:(.text+0x760): undefined reference to `alcGetContextsDevice'
audio.cpp:(.text+0x773): undefined reference to `alcMakeContextCurrent'
audio.cpp:(.text+0x782): undefined reference to `alcDestroyContext'
audio.cpp:(.text+0x791): undefined reference to `alcCloseDevice'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundBuffer::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
audio.cpp:(.text+0x8cf): undefined reference to `ov_open'
audio.cpp:(.text+0x8df): undefined reference to `ov_info'
audio.cpp:(.text+0x930): undefined reference to `ov_read'
audio.cpp:(.text+0x963): undefined reference to `ov_clear'
CMakeFiles/minetest.dir/audio.cpp.o: In function `_ZN11SoundBuffer4loadESs.constprop.157':
audio.cpp:(.text+0x9e3): undefined reference to `ov_open'
audio.cpp:(.text+0x9f3): undefined reference to `ov_info'
audio.cpp:(.text+0xa40): undefined reference to `ov_read'
audio.cpp:(.text+0xa73): undefined reference to `ov_clear'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::play(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
audio.cpp:(.text+0x18a7): undefined reference to `alGenBuffers'
audio.cpp:(.text+0x18ba): undefined reference to `alGenSources'
audio.cpp:(.text+0x18e5): undefined reference to `alSource3f'
audio.cpp:(.text+0x195c): undefined reference to `alBufferData'
audio.cpp:(.text+0x1976): undefined reference to `alSourcei'
CMakeFiles/minetest.dir/audio.cpp.o: In function `Audio::setVolume(float)':
audio.cpp:(.text+0x173): undefined reference to `alListenerf'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::pause()':
audio.cpp:(.text+0x20c): undefined reference to `alSourcePause'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::play()':
audio.cpp:(.text+0x21c): undefined reference to `alSourcePlay'
CMakeFiles/minetest.dir/audio.cpp.o: In function `SoundSource::stop()':
audio.cpp:(.text+0x22c): undefined reference to `alSourceStop'
CMakeFiles/minetest.dir/audio.cpp.o: In function `PlaybackThread::Thread()':
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x1b): undefined reference to `alSourcePlay'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x39): undefined reference to `alGetSourcei'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x5f): undefined reference to `alDeleteBuffers'
audio.cpp:(.text._ZN14PlaybackThread6ThreadEv[PlaybackThread::Thread()]+0x6f): undefined reference to `alDeleteSources'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [bin/minetest] Fehler 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Fehler 2
make: *** [all] Fehler 2
Have you installed the OpenAL library?
3D Player in Minetest?! - New GUI and more graphic options
"Lets do this..." Ghost Riley
Linux needs a good ego-shooter!!...
Sorry for my bad english

User avatar
sfan5
Moderator
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

I installed libalut0 and libalut-dev
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

by jordan4ibanez » Post

you need openal-dev and vorbis-dev
I've been gone for a long time

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

sfan5 wrote:I installed libalut0 and libalut-dev
Your using the wrong sound branch I think, did you install cisoun's sound branch? if so thats the wrong one.

This is the newest sound branch: https://github.com/Oblomov/minetest/commits/sound
Its been re-based on 0.4 and is actively being updated by tango and celeron55 its originally based on cisouns code.

User avatar
sfan5
Moderator
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

dannydark wrote:
sfan5 wrote:I installed libalut0 and libalut-dev
Your using the wrong sound branch I think, did you install cisoun's sound branch? if so thats the wrong one.

This is the newest sound branch: https://github.com/Oblomov/minetest/commits/sound
Its been re-based on 0.4 and is actively being updated by tango and celeron55 its originally based on cisouns code.
Oh! I used the wrong code
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

Haha ^_^ I know cisoun did some updates to the base audio stuff recently which I think tango might have merged with his branch although I'm not 100% sure about that ^_^

User avatar
sfan5
Moderator
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

I compiled the Sound-Branch, but I can't hear anything.
I also can't find any sound files
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

by jordan4ibanez » Post

sfan5 wrote:I compiled the Sound-Branch, but I can't hear anything.
I also can't find any sound files
sfan..ill get ya something
I've been gone for a long time

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

you will have to add the sound yourself.

1: Create folder data/sounds/
2: Grab Dogers & kddekadenz's sound pack: http://c55.me/minetest/forum/viewtopic. ... 2957#p2957
3: add sounds into sounds folder you will also need to rename the sounds so for walking sounds you would change them to: default_stone_walk1.ogg, default_stone_walk2.ogg etc etc and you can add menu music by adding a file and naming it titlemusic.ogg

User avatar
sfan5
Moderator
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

I always forget the important things.
Thanks for your Help!
Last edited by sfan5 on Mon Jan 30, 2012 21:24, edited 1 time in total.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

no problem ^_^

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

by jordan4ibanez » Post

heres 3d client and sound starter kit lol http://www.mediafire.com/?wwrx9cxoaz9towj (for linux)
Last edited by jordan4ibanez on Mon Jan 30, 2012 22:48, edited 1 time in total.
I've been gone for a long time

User avatar
Dogers
Member
Posts: 94
Joined: Mon Jun 20, 2011 12:14
Location: Marseille , France
Contact:

by Dogers » Post

Attention please ! I've updated the sound-pack because I've noticed that some ambient-looped sound were not looping correctly . I've fixed this and here's the new version of the archive :

http://www.mediafire.com/?7vk6tvvjr4ljjlr

Thanks for your comprehension !
Last edited by Dogers on Tue Jan 31, 2012 13:22, edited 1 time in total.
Dogers or dttdogers in-game
---------------------------------
My personal page : http://dttdogers.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests