Retrieves 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_ChannelGet3DPosition( 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... = don't retrieve it. - orient
- Type: Un4seen.BassBASS_3DVECTOR
Orientation of the sound... = don't retrieve it. - vel
- Type: Un4seen.BassBASS_3DVECTOR
Velocity of the sound... = don't retrieve it.
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. |
Examples
BASS_3DVECTOR pos = new BASS_3DVECTOR(); BASS_3DVECTOR orient = new BASS_3DVECTOR(); BASS_3DVECTOR vel = new BASS_3DVECTOR(); if (Bass.BASS_ChannelGet3DPosition(stream, pos, orient, vel)) { Console.WriteLine("{0} : {1} : {2}", pos, orient, vel); }
See Also