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.
jordan4ibanez wrote:i can see that it wants to load it up but there are no files xD but i will happily wait :D
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
sfan5 wrote:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- 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
sfan5 wrote:I installed libalut0 and libalut-dev
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.
sfan5 wrote:I compiled the Sound-Branch, but I can't hear anything.
I also can't find any sound files
jordan4ibanez wrote:heres 3d client and sound starter kit lol http://www.mediafire.com/?wwrx9cxoaz9towj (for linux)
RAPHAEL wrote:Hmm well it seems sound doesn't work...
Downloaded the source from https://github.com/Oblomov/minetest/commits/sound
Installed libalut0, libalut-dev, openal-dev and vorbis-dev
(already have done apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev prior)
Downloaded http://www.mediafire.com/?wwrx9cxoaz9towj and snagged out the sounds and put in data/sounds/
cmake . -DRUN_IN_PLACE=1
make -j2
cd bin
./minetest
No sound. Linux Mint 12.
jordan4ibanez wrote:RAPHAEL wrote:Hmm well it seems sound doesn't work...
Downloaded the source from https://github.com/Oblomov/minetest/commits/sound
Installed libalut0, libalut-dev, openal-dev and vorbis-dev
(already have done apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev prior)
Downloaded http://www.mediafire.com/?wwrx9cxoaz9towj and snagged out the sounds and put in data/sounds/
cmake . -DRUN_IN_PLACE=1
make -j2
cd bin
./minetest
No sound. Linux Mint 12.
gotta make your own
IPushButton2653 wrote:I can't compile, but I like it quiet. So that helps. I'd rather listen to John Lennon (hence my in-game name) sing a few songs rather than listen to whatever it is that the sound does
TForsman wrote:I built minetest with sound in Foresight Linux.
First you must make sure you have libvorbis-devel 1.3.* installed, cant be 1.2.* or it won't work.
Also add the sound in folder: /usr/share/minetest/sounds/
So not in a /data/ folder, that won't work either.
Make sure you have right names of the sound files, or they won't play either.
/usr/share/minetest/sounds/titlemusic.ogg <--- gives sound right away, when starting it up.
New dependencies from "default" minetest is:
'libogg:devel', 'libvorbis:devel', 'openal:devel'
your filenames might be: libogg-devel or similar.
Hopefully this might help you.
Users browsing this forum: No registered users and 1 guest