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:
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?