Sets the 3D position of a sample, stream, or MOD music channel with 3D functionality.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bass")] public static bool BASS_ChannelSet3DPosition( int handle, BASS_3DVECTOR pos, BASS_3DVECTOR orient, BASS_3DVECTOR vel )
Parameters
- handle
- Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM. - pos
- Type: Un4seen.BassBASS_3DVECTOR
Position of the sound... = leave current. - orient
- Type: Un4seen.BassBASS_3DVECTOR
Orientation of the sound... = leave current. - vel
- Type: Un4seen.BassBASS_3DVECTOR
Velocity of the sound... = leave current. This is only used to calculate the doppler effect, and has no effect on the sound's position.
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_NO3D | The channel does not have 3D functionality. |
See Also