123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551 |
- #ifndef _AK_QUERYPARAMS_H_
- #define _AK_QUERYPARAMS_H_
- #include <AK/SoundEngine/Common/AkSoundEngineExport.h>
- #include <AK/SoundEngine/Common/AkTypes.h>
- #include <AK/SoundEngine/Common/AkCommonDefs.h>
- #include <AK/Tools/Common/AkArray.h>
- struct AkPositioningInfo
- {
- AkReal32 fCenterPct;
- AkSpeakerPanningType pannerType;
- Ak3DPositionType e3dPositioningType;
- bool bHoldEmitterPosAndOrient;
- Ak3DSpatializationMode e3DSpatializationMode;
- bool bEnableAttenuation;
- bool bUseConeAttenuation;
- AkReal32 fInnerAngle;
- AkReal32 fOuterAngle;
- AkReal32 fConeMaxAttenuation;
- AkLPFType LPFCone;
- AkLPFType HPFCone;
- AkReal32 fMaxDistance;
- AkReal32 fVolDryAtMaxDist;
- AkReal32 fVolAuxGameDefAtMaxDist;
- AkReal32 fVolAuxUserDefAtMaxDist;
- AkLPFType LPFValueAtMaxDist;
- AkLPFType HPFValueAtMaxDist;
- };
- struct AkObjectInfo
- {
- AkUniqueID objID;
- AkUniqueID parentID;
- AkInt32 iDepth;
- };
- namespace AK
- {
-
- namespace SoundEngine
- {
-
-
-
-
-
-
-
-
-
-
-
-
- namespace Query
- {
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetPosition )(
- AkGameObjectID in_GameObjectID,
- AkSoundPosition& out_rPosition
- );
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetListeners )(
- AkGameObjectID in_GameObjectID,
- AkGameObjectID* out_ListenerObjectIDs,
- AkUInt32& oi_uNumListeners
- );
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetListenerPosition )(
- AkGameObjectID in_uListenerID,
- AkListenerPosition& out_rPosition
- );
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetListenerSpatialization )(
- AkGameObjectID in_uListenerID,
- bool& out_rbSpatialized,
- AK::SpeakerVolumes::VectorPtr & out_pVolumeOffsets,
- AkChannelConfig &out_channelConfig
- );
-
-
-
-
-
-
-
-
-
-
-
-
-
- enum RTPCValue_type
- {
- RTPCValue_Default,
- RTPCValue_Global,
- RTPCValue_GameObject,
- RTPCValue_PlayingID,
- RTPCValue_Unavailable
- };
-
-
-
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC(AKRESULT, GetRTPCValue)(
- AkRtpcID in_rtpcID,
- AkGameObjectID in_gameObjectID,
- AkPlayingID in_playingID,
- AkRtpcValue& out_rValue,
- RTPCValue_type& io_rValueType
- );
- #ifdef AK_SUPPORT_WCHAR
-
-
-
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC(AKRESULT, GetRTPCValue)(
- const wchar_t* in_pszRtpcName,
- AkGameObjectID in_gameObjectID,
- AkPlayingID in_playingID,
- AkRtpcValue& out_rValue,
- RTPCValue_type& io_rValueType
- );
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC(AKRESULT, GetRTPCValue)(
- const char* in_pszRtpcName,
- AkGameObjectID in_gameObjectID,
- AkPlayingID in_playingID,
- AkRtpcValue& out_rValue,
- RTPCValue_type& io_rValueType
- );
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetSwitch )(
- AkSwitchGroupID in_switchGroup,
- AkGameObjectID in_gameObjectID,
- AkSwitchStateID& out_rSwitchState
- );
- #ifdef AK_SUPPORT_WCHAR
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetSwitch )(
- const wchar_t* in_pstrSwitchGroupName,
- AkGameObjectID in_GameObj,
- AkSwitchStateID& out_rSwitchState
- );
- #endif
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetSwitch )(
- const char* in_pstrSwitchGroupName,
- AkGameObjectID in_GameObj,
- AkSwitchStateID& out_rSwitchState
- );
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetState )(
- AkStateGroupID in_stateGroup,
- AkStateID& out_rState
- );
- #ifdef AK_SUPPORT_WCHAR
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetState )(
- const wchar_t* in_pstrStateGroupName,
- AkStateID& out_rState
- );
- #endif
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetState )(
- const char* in_pstrStateGroupName,
- AkStateID& out_rState
- );
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetGameObjectAuxSendValues )(
- AkGameObjectID in_gameObjectID,
- AkAuxSendValue* out_paAuxSendValues,
-
- AkUInt32& io_ruNumSendValues
-
- );
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetGameObjectDryLevelValue )(
- AkGameObjectID in_EmitterID,
- AkGameObjectID in_ListenerID,
- AkReal32& out_rfControlValue
-
- );
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetObjectObstructionAndOcclusion )(
- AkGameObjectID in_EmitterID,
- AkGameObjectID in_ListenerID,
- AkReal32& out_rfObstructionLevel,
- AkReal32& out_rfOcclusionLevel
- );
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, QueryAudioObjectIDs )(
- AkUniqueID in_eventID,
- AkUInt32& io_ruNumItems,
- AkObjectInfo* out_aObjectInfos
- );
- #ifdef AK_SUPPORT_WCHAR
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, QueryAudioObjectIDs )(
- const wchar_t* in_pszEventName,
- AkUInt32& io_ruNumItems,
- AkObjectInfo* out_aObjectInfos
- );
- #endif
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, QueryAudioObjectIDs )(
- const char* in_pszEventName,
- AkUInt32& io_ruNumItems,
- AkObjectInfo* out_aObjectInfos
- );
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetPositioningInfo )(
- AkUniqueID in_ObjectID,
- AkPositioningInfo& out_rPositioningInfo
- );
-
-
-
-
-
-
- typedef AkArray<AkGameObjectID, AkGameObjectID> AkGameObjectsList;
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetActiveGameObjects )(
- AkGameObjectsList& io_GameObjectList
- );
-
-
- AK_EXTERNAPIFUNC( bool, GetIsGameObjectActive )(
- AkGameObjectID in_GameObjId
- );
-
-
-
- struct GameObjDst
- {
-
- GameObjDst()
- : m_gameObjID( AK_INVALID_GAME_OBJECT )
- , m_dst( -1.0f )
- {}
-
- GameObjDst( AkGameObjectID in_gameObjID, AkReal32 in_dst )
- : m_gameObjID( in_gameObjID )
- , m_dst( in_dst )
- {}
- AkGameObjectID m_gameObjID;
- AkReal32 m_dst;
- };
-
-
-
- typedef AkArray<GameObjDst, const GameObjDst&> AkRadiusList;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetMaxRadius )(
- AkRadiusList & io_RadiusList
- );
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AkReal32, GetMaxRadius )(
- AkGameObjectID in_GameObjId
- );
-
-
-
-
- AK_EXTERNAPIFUNC( AkUniqueID, GetEventIDFromPlayingID )(
- AkPlayingID in_playingID
- );
-
-
-
-
- AK_EXTERNAPIFUNC( AkGameObjectID, GetGameObjectFromPlayingID )(
- AkPlayingID in_playingID
- );
-
-
-
-
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetPlayingIDsFromGameObject )(
- AkGameObjectID in_GameObjId,
- AkUInt32& io_ruNumIDs,
- AkPlayingID* out_aPlayingIDs
- );
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetCustomPropertyValue )(
- AkUniqueID in_ObjectID,
- AkUInt32 in_uPropID,
- AkInt32& out_iValue
- );
-
-
- AK_EXTERNAPIFUNC( AKRESULT, GetCustomPropertyValue )(
- AkUniqueID in_ObjectID,
- AkUInt32 in_uPropID,
- AkReal32& out_fValue
- );
- }
- }
- }
- #endif
|