DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-26-2004, 01:34 PM   #1
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default

Hi all

This seemed like the best plave to put a question about OpenAL, if not, let me know, or just move it

According to the OpenAL docs, when you pause a source, the stste changes to Paused, and then you call alSourcePlay(_sourceID) to resume the source. Well, I cant get this to work. If I write:

Code:
alSourcePause(soundSource[_sourceID].source); CCOPENAL_ERROR_CHECK_NO_RETURN("Pausing source :"); alSourcePlay(soundSource[_sourceID].source);

(where soundSource[_sourceID].source is the ID generated by OpenAL), the sample stops as it should, no errors are generated, and the state gets set to Paused. But then when I call the alSourcePlay function, the source plays, but from the start of the sample, not from where I paused it.

These two lines are called one after the other, so nothing else if resenting the buffer, just wondered if anyone had any ideas?

Cheers

Spree
SpreeTree is offline   Reply With Quote
Old 01-26-2004, 03:14 PM   #2
anubis
DevMaster Staff
 
anubis's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 2,328
Default

i have no experience with openal so i can only direct you to the wonderful openal tuts here on devmaster. as there really is no place for sound related questions i will leave the post here
___________________________________________
If Prolog is the answer, what is the question ?
anubis is offline   Reply With Quote
Old 01-26-2004, 04:34 PM   #3
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default

Yeah I've looked at the tutorials, but they dont really go into the problem. But thanks anyway

Spree
SpreeTree is offline   Reply With Quote
Old 01-27-2004, 02:10 AM   #4
anubis
DevMaster Staff
 
anubis's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 2,328
Default

np, i hope somebody else around here can help you
___________________________________________
If Prolog is the answer, what is the question ?
anubis is offline   Reply With Quote
Old 01-27-2004, 02:33 PM   #5
Dia Kharrat
DevMaster Staff
 
Join Date: Jan 2003
Posts: 1,201
Default

That's a good question. Unfortunately, I'm not knowledgable with OpenAL either. The main guy is Jesse, the author of the tutorials. I hope he reads your post and answers your question.
Dia Kharrat is offline   Reply With Quote
Old 01-27-2004, 03:07 PM   #6
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default

Ah well, problem solved. Seems its a bug within the new openAL dll's. alSourcePlay doesnt actually work in the way its meant too. Ive flagged it up on the dev mailing lists, just have to wait now... and I hate waiting

Spree
SpreeTree is offline   Reply With Quote
Old 01-27-2004, 11:17 PM   #7
Dia Kharrat
DevMaster Staff
 
Join Date: Jan 2003
Posts: 1,201
Default

Since a "Sound and Music Programming" forum has been created, I've moved all related questions to the new forum.
Dia Kharrat is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 04:28 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.