Forums

Full Version: Restart Game - sound errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When I pause the game and click "Restart Game" (usually because I'm not catching up with the AI fast enough...) I get the following errors:
Code:
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/cars/M3/engine.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
What exactly does restart game do? That is, what functions from main.cpp does it call?
It calls ResetWorld( true );
Okay, the problem was that resetworld(true) was doing a selectcar (which deletes and recreates the car) without doing a sound reload. I added this and it should be fixed now (R1449).
Hmmm, I still get:
Code:
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Unable to find the file: /usr/share/games/vdrift/data/cars/XM/interior.joe!
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/cars/XM/engine.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Out of sound sources, can't create new source for buffer /usr/share/games/vdrift/data/sounds/tire_squeal.wav (11)
Unable to find the file: /usr/share/games/vdrift/data/cars/XM/interior.joe!
and no sounds after a restart.
Still still seems to be an issue. I am using the current SVN (1542) and sound still isn't respawned when restart game is clicked.
I'll put this on my TODO... but if anyone finds a better open-source cross platform sound library than OpenAL, let me know. A rewrite of the sound class is probably in order, also... it should be higher level and abstract further away from OpenAL.
Our sound code really does need some work. Currently playing with AI, whenever I start to slide there is a big slow down in the game, possibly from trying to allocate sound sources? Obviously it has run out of sound sources, because the player car's engine sound doesn't work (though the AI car sounds do).
i dnt have sound either but i dont no much bout computers this game seems to have alot of faults
The issues in this post are mostly fixed, though there are other problem with the sound in the last release. Sound stuff should be much better in the next version. We're working on that. Sure the game has plenty of faults, it's a work in progress.
Odd I just ran the development version of vDrift and noticed that the only sound is a long vibrating like sound. is this normal??
kidrock Wrote:Odd I just ran the development version of vDrift and noticed that the only sound is a long vibrating like sound. is this normal??

the new sound engine doesn't work yet on PowerPC machines like the iMac G5 you seem to be using
Oh ok. how long until it is done? also i just noticed that there isnt even a engine rev sound file in the sounds folder. thought that would have been the problem. thanks anyway.
We'll get it fixed sooner or later, whenever we get to it. Wink

The engine sound lives in the directory of the car it goes with. We used to only have one engine sound but now we have one for each car. Many of them are the same since we don't have a lot of sound samples.
Thats good. Hey anyway i can help with the sound issues on ppc machines? tell me what to do and i will do it. i really would like to help with it. either pm me or tell me in this forum. thanks

David Xerri
Pages: 1 2