[Openal] resuming audio files in OpenAL1.0 and 1.1

Garin Hiebert garinh at cheesetoast.net
Sun Aug 7 19:50:40 PDT 2005


> Garin was able to help me resolve the issue of switching between OAL
> versions (which dealt with differences in required initializations  
> between
> the two).

A clarification for the list on the init issue -- AL 1.0 and 1.1 can  
be initialized using the same sequence of operations (open a device,  
create a context, make the new context current).  I'm tracking down  
the bug that led to the issue Devvan ran into, but I think it was  
related to the currently-distributed router code (in the binary  
distribution) being used with the 1.1 library.   When 1.1 officially  
ships as the mainstream implementation, this particular bug will be  
gone of course...

>   Now that everything builds, I run the following:
>
> ---- start code -----
> //clear any existing error....
> alSourcef(m_SourceID, AL_SEC_OFFSET, static_cast<ALfloat> 
> (resumeTime));
> currError = alGetError();
> if(currError != AL_NO_ERROR)
> { switch on error enum... }
> alSourcePlay(m_SourceID);
> ---- end code ----
>
> ...and alGetError returns AL_INVALID_ENUM.  Even my IDE can trace the
> AL_SEC_OFFSET enum to altypes.h, so it seems as if that this enum  
> has no
> meaning in the library implementation.  As far as I can tell from  
> the doc
> (page 38 of the 1.1 spec), this is a valid flag for the alSourcef
> function. Has this been implemented yet?

This is used and has been tested against the 1.1 implementation  
through ALTest and the Windows demo app, so it _should_ work.  Since  
this is a new 1.1 feature, it should be working on 1.1 only, of course.

Garin




More information about the Openal mailing list