Microsoft DirectX 8.1 (C++) |
Controls the transmission of audio from the client to the specified members of the session.
HRESULT SetTransmitTargets( DVID dvSource, PDVID pdvIDTargets, DWORD dwNumTargets, DWORD dwFlags );
Returns DV_OK if successful, or one of the following error values.
DVERR_INVALIDFLAGS |
DVERR_INVALIDPARAM |
DVERR_INVALIDPOINTER |
DVERR_INVALIDTARGET |
DVERR_NOTALLOWED |
DVERR_NOTINITIALIZED |
For Microsoft® DirectX® 8.1, the number of individual targets that you can transmit to is limited to 64. If you exceed this value, the method will fail, and return DVERR_NOTALLOWED. However, you can transmit to more than 64 players. To do so, form the players into groups, and then use the group as your target.
There must be no duplicate targets in this parameter, and all entries must be valid DVIDs. If a target contains a player as its individual DVID and through a group that the target belongs to, Microsoft® DirectPlay® Voice ensures duplicate speech packets are not sent to the player.
This method can be used only if the DVSESSION_SERVERCONTROLTARGET flag is specified on creation of the DirectPlay Voice session. If the flag is not specified, this method returns DVERR_NOTALLOWED.
Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
Windows 98/Me: Available as a redistributable for Windows 98 and later.
Header: Declared in Dvoice.h.