Microsoft DirectX 8.0 (Visual Basic) |
Creates a primary buffer object that can be used to change the format of the audio output and to obtain a DirectSound3DListener8 object.
object.CreatePrimarySoundBuffer( _ bufferDesc As DSBUFFERDESC _ ) As DirectSoundPrimaryBuffer8
Returns a DirectSoundPrimaryBuffer8 object.
If the method fails, an error is raised and Err.Number may be one of the following error values.
DSERR_ALLOCATED |
DSERR_BADFORMAT |
DSERR_OUTOFMEMORY |
DSERR_UNINITIALIZED |
DSERR_UNSUPPORTED |