JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce_UnityPluginInterface.h File Reference

Classes

struct  UnityAudioAmbisonicData
 
struct  UnityAudioEffectDefinition
 
struct  UnityAudioEffectState
 
struct  UnityAudioParameterDefinition
 
struct  UnityAudioSpatializerData
 

Macros

#define UNITY_AUDIO_PLUGIN_API_VERSION   0x010401
 
#define UNITY_INTERFACE_API   __stdcall
 
#define UNITY_INTERFACE_EXPORT   __declspec(dllexport)
 

Typedefs

typedef int(UNITY_INTERFACE_APIdistanceAttenuationCallback) (UnityAudioEffectState *state, float distanceIn, float attenuationIn, float *attenuationOut)
 
typedef int(UNITY_INTERFACE_APIgetFloatBufferCallback) (UnityAudioEffectState *state, const char *name, float *buffer, int numsamples)
 
typedef int(UNITY_INTERFACE_APIgetFloatParameterCallback) (UnityAudioEffectState *state, int index, float *value, char *valuestr)
 
typedef int(UNITY_INTERFACE_APIprocessCallback) (UnityAudioEffectState *state, float *inBuffer, float *outBuffer, unsigned int bufferSize, int numInChannels, int numOutChannels)
 
typedef int(UNITY_INTERFACE_APIreleaseCallback) (UnityAudioEffectState *state)
 
typedef void(UNITY_INTERFACE_APIrenderCallback) (int eventId)
 
typedef int(UNITY_INTERFACE_APIresetCallback) (UnityAudioEffectState *state)
 
typedef int(UNITY_INTERFACE_APIsetFloatParameterCallback) (UnityAudioEffectState *state, int index, float value)
 
typedef int(UNITY_INTERFACE_APIsetPositionCallback) (UnityAudioEffectState *state, unsigned int pos)
 

Enumerations

enum  UnityAudioEffectDefinitionFlags {
  isSideChainTarget = 1,
  isSpatializer = 2,
  isAmbisonicDecoder = 4,
  appliesDistanceAttenuation = 8
}
 
enum  UnityAudioEffectStateFlags {
  stateIsPlaying = 1,
  stateIsPaused = 2,
  stateIsMuted = 8,
  statIsSideChainTarget = 16
}
 
enum  UnityEventModifiers {
  shift = 1,
  control = 2,
  alt = 4,
  command = 8,
  numeric = 16,
  capsLock = 32,
  functionKey = 64
}
 

Functions

UNITY_INTERFACE_EXPORT renderCallback UNITY_INTERFACE_API getRenderCallback ()
 
typedef int (UNITY_INTERFACE_API *createCallback)(UnityAudioEffectState *state)
 
UNITY_INTERFACE_EXPORT int UNITY_INTERFACE_API UnityGetAudioEffectDefinitions (UnityAudioEffectDefinition ***definitionsPtr)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityInitialiseTexture (int id, void *textureHandle, int w, int h)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityKeyEvent (int id, int code, UnityEventModifiers mods, const char *name)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseDown (int id, float x, float y, UnityEventModifiers mods, int button)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseDrag (int id, float x, float y, UnityEventModifiers mods, int button)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseUp (int id, float x, float y, UnityEventModifiers mods)
 
UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unitySetScreenBounds (int id, float x, float y, float w, float h)
 

Macro Definition Documentation

◆ UNITY_AUDIO_PLUGIN_API_VERSION

#define UNITY_AUDIO_PLUGIN_API_VERSION   0x010401

◆ UNITY_INTERFACE_API

#define UNITY_INTERFACE_API   __stdcall

◆ UNITY_INTERFACE_EXPORT

#define UNITY_INTERFACE_EXPORT   __declspec(dllexport)

Typedef Documentation

◆ distanceAttenuationCallback

typedef int(UNITY_INTERFACE_API * distanceAttenuationCallback) (UnityAudioEffectState *state, float distanceIn, float attenuationIn, float *attenuationOut)

◆ getFloatBufferCallback

typedef int(UNITY_INTERFACE_API * getFloatBufferCallback) (UnityAudioEffectState *state, const char *name, float *buffer, int numsamples)

◆ getFloatParameterCallback

typedef int(UNITY_INTERFACE_API * getFloatParameterCallback) (UnityAudioEffectState *state, int index, float *value, char *valuestr)

◆ processCallback

typedef int(UNITY_INTERFACE_API * processCallback) (UnityAudioEffectState *state, float *inBuffer, float *outBuffer, unsigned int bufferSize, int numInChannels, int numOutChannels)

◆ releaseCallback

typedef int(UNITY_INTERFACE_API * releaseCallback) (UnityAudioEffectState *state)

◆ renderCallback

typedef void(UNITY_INTERFACE_API * renderCallback) (int eventId)

◆ resetCallback

typedef int(UNITY_INTERFACE_API * resetCallback) (UnityAudioEffectState *state)

◆ setFloatParameterCallback

typedef int(UNITY_INTERFACE_API * setFloatParameterCallback) (UnityAudioEffectState *state, int index, float value)

◆ setPositionCallback

typedef int(UNITY_INTERFACE_API * setPositionCallback) (UnityAudioEffectState *state, unsigned int pos)

Enumeration Type Documentation

◆ UnityAudioEffectDefinitionFlags

Enumerator
isSideChainTarget 
isSpatializer 
isAmbisonicDecoder 
appliesDistanceAttenuation 

◆ UnityAudioEffectStateFlags

Enumerator
stateIsPlaying 
stateIsPaused 
stateIsMuted 
statIsSideChainTarget 

◆ UnityEventModifiers

Enumerator
shift 
control 
alt 
command 
numeric 
capsLock 
functionKey 

Function Documentation

◆ getRenderCallback()

◆ int()

typedef int ( UNITY_INTERFACE_API createCallback)

Referenced by juce::RenderingHelpers::TranslationOrTransform::addTransform(), juce::String::appendCharPointer(), juce::StandalonePluginHolder::askUserToLoadState(), juce::PixelAlpha::blend(), juce::CharPointer_ASCII::canRepresent(), juce::AudioFormatReader::clearSamplesBeyondAvailableLength(), juce::RenderingHelpers::ClipRegions< SavedStateType >::EdgeTableRegion::clipToImageAlpha(), juce::CharPointer_UTF16::compareIgnoreCaseUpTo(), juce::anonymous_namespace{juce_mac_CoreGraphicsHelpers.h}::convertToRectInt(), juce::PixelARGB::desaturate(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::Diff::Diff(), littlefoot::Program::dumpFunctionDisassembly(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::dumpStatus(), juce::CharacterFunctions::find(), juce::CharacterFunctions::findLengthWithoutTrailingZeros(), juce::Rectangle< int >::floorAsInt(), CameraDevice::Pimpl::getIOSVersion(), juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::getLargestIntegerWithin(), VideoComponent::Pimpl::getNativeSize(), juce::AudioParameterInt::getRange(), VideoComponent::Pimpl::MediaSession::Player::getVideoNativeSize(), VideoComponent::Pimpl::DirectShowContext::getVideoSize(), VideoComponent::Pimpl::MediaSession::Controller::getVolume(), juce::CharacterFunctions::indexOf(), juce::CharacterFunctions::indexOfIgnoreCase(), MediaPlayerListener::invoke(), AudioManagerOnAudioFocusChangeListener::invoke(), MediaRecorderOnInfoListener::invoke(), MediaRecorderOnErrorListener::invoke(), juce::MidiMessage::isHeapAllocated(), juce::CharPointer_UTF32::isValidString(), juce::CharPointer_UTF16::isValidString(), juce::OpenGLContext::NativeContext::NativeContext(), VideoComponent::Pimpl::DirectShowContext::NativeWindowClass::NativeWindowClass(), juce::dsp::Reverb::process(), juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextPacket(), juce::CharacterFunctions::readDoubleValue(), juce::StandalonePluginHolder::reloadPluginState(), juce::Array< juce::File >::remove(), juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::renderImage(), juce::LinearSmoothedValue< Type >::reset(), juce::Reverb::setSampleRate(), juce::OpenGLContext::NativeContext::swapBuffers(), juce::String::toDecimalStringWithSignificantFigures(), juce::OpenGLContext::NativeContext::updateWindowPosition(), and juce::BlocksProtocol::Packed7BitArrayBuilder< maxPacketBytes >::writeHeaderSysexBytes().

◆ UnityGetAudioEffectDefinitions()

UNITY_INTERFACE_EXPORT int UNITY_INTERFACE_API UnityGetAudioEffectDefinitions ( UnityAudioEffectDefinition ***  definitionsPtr)

◆ unityInitialiseTexture()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityInitialiseTexture ( int  id,
void *  textureHandle,
int  w,
int  h 
)

◆ unityKeyEvent()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityKeyEvent ( int  id,
int  code,
UnityEventModifiers  mods,
const char *  name 
)

◆ unityMouseDown()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseDown ( int  id,
float  x,
float  y,
UnityEventModifiers  mods,
int  button 
)

◆ unityMouseDrag()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseDrag ( int  id,
float  x,
float  y,
UnityEventModifiers  mods,
int  button 
)

◆ unityMouseUp()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unityMouseUp ( int  id,
float  x,
float  y,
UnityEventModifiers  mods 
)

◆ unitySetScreenBounds()

UNITY_INTERFACE_EXPORT void UNITY_INTERFACE_API unitySetScreenBounds ( int  id,
float  x,
float  y,
float  w,
float  h 
)