![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Feb 2006
Posts: 3
|
So, I've been busy, modifiy the tutorials around to make a OpenAL wrapper class.
I've been writing a renderer in Directx and linking objects to sources so I can update there position and stuff, but that isnt so much the problem. I can't replay a sound once its been played, here is my little function: Code:
Now, it plays the sound once, then never again. But if I step through, it will repeat the sound. But only if I step through alSourcePlay. Another thing I have noticed, i downloaded the Multiple sources Tut, and just ran the ExE, none of the sources replay in that, appart from the looping battlefield sound. So I'm completely stumped, almost seems like a dodgy dll to me, but idk. Any help will be appreciated. |
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2006
Location: Austria
Posts: 1
|
Call alSourceRewind(g_Sources[Source]) before alSourcePlay(...)
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|