[Openal] xfi issues

Daniel PEACOCK dpeacock at creativelabs.com
Tue Aug 28 17:33:07 PDT 2007





Hi Xavier,

Thanks for the post ... this appears to be a driver bug in the alGetSourcei
AL_BUFFER code which we will fix.  FYI ... the 4096 value is used
internally to indicate an invalid buffer id, but of course, it shouldn't
ever be returned to the application (and you shouldn't try to unqueue it).

Thanks,

Dan
Creative Labs, Inc.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.




                                                                           
             Xavier Bouchoux                                               
             <xavier at nadeo.com                                             
             >                                                          To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       Re: [Openal] xfi issues             
                                                                           
             08/28/2007 05:10                                              
             AM                                                            
                                                                           
                                                                           
                                                                           





> oups. the buffer for the source has changed to some buffer I've never
> created.
> Is this excepted? can the buffer be changed at any time?
> If so, should I just ignore the buffer I didn't create, or should I
> delete it when I delete the source?
>

just to make sure it wasn't something special I was doing somewhere else
in the code (efx, preallocing sources, ...)
I modified the simple "PlayStatic.cpp" example:

@@ -59,6 +59,10 @@
             // Attach Source to Buffer
             alSourcei( uiSource, AL_BUFFER, uiBuffer );

+            ALint iCurBuffer;
+            alGetSourcei(uiSource, AL_BUFFER, &iCurBuffer);
+            ALFWprintf("before, buf = %d\n", iCurBuffer);
+
             // Play Source
      alSourcePlay( uiSource );
             ALFWprintf("Playing Source ");
@@ -72,6 +76,9 @@
             } while (iState == AL_PLAYING);

             ALFWprintf("\n");
+
+            alGetSourcei(uiSource, AL_BUFFER, &iCurBuffer);
+            ALFWprintf("after, buf = %d\n", iCurBuffer);

             // Clean up by deleting Source(s) and Buffer(s)
             alSourceStop(uiSource);


And I do reproduce the same issue,
before = 1,  after = 4096

(whereas if on the same machine I chose "generic software", before and
after have the same values)


_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT00045EAA



More information about the Openal mailing list