Microsoft DirectX 8.1 (Visual Basic) |
You can add extra realism to a Microsoft® DirectPlay® Voice session by making the sound three-dimensional. Your players can then use audio cues to perceive the positions and movement of the other players. The basis for a 3-D voice session is the 3-D capabilities of Microsoft® DirectSound®. This document discusses how to manage your voice buffers to create a 3-D voice session. For complete details about how to use the DirectSound 3-D application programming interface (API), see 3-D Sound.
When you receive a voice transmission, it is streamed into a DirectSound buffer. By default, everything is streamed into the main buffer. To implement 3-D sound, you must have a separate buffer for each distinct source. You can then use the DirectSound 3-D API to manage the buffers to create 3-D sound.
You can specify separate 3-D buffers for individual players and for groups of players. To specify a 3-D buffer for a particular player or group, call DirectPlayVoiceClient8.Create3DSoundBuffer and pass the method either the player or group DVID. All transmissions from that player or group will then go into the specified 3-D buffer.
DirectPlay Voice 3-D buffers have the following characteristics.