/frameworks/wilhelm/src/desktop/ |
H A D | SndFile.c | 35 struct SndFile *thiz = &thisAP->mSndFile; local 37 pthread_mutex_lock(&thiz->mMutex); 38 if (thiz->mEOF) { 39 pthread_mutex_unlock(&thiz->mMutex); 42 short *pBuffer = &thiz->mBuffer[thiz->mWhich * SndFile_BUFSIZE]; 43 if (++thiz->mWhich >= SndFile_NUMBUFS) { 44 thiz->mWhich = 0; 47 count = sf_read_short(thiz->mSNDFILE, pBuffer, (sf_count_t) SndFile_BUFSIZE); 48 pthread_mutex_unlock(&thiz 137 SndFile_checkAudioPlayerSourceSink(CAudioPlayer *thiz) argument 239 SndFile_Realize(CAudioPlayer *thiz) argument 277 SndFile_Destroy(CAudioPlayer *thiz) argument [all...] |
/frameworks/wilhelm/src/ |
H A D | entry.c | 90 CEngine *thiz = theOneTrueEngine; local 91 if (NULL != thiz) { 101 object_lock_exclusive(&thiz->mObject); 105 SLuint8 *interfaceStateP = thiz->mObject.mInterfaceStates; 116 if ((NULL == expose) || (*expose)((char *) thiz + x->mOffset)) { 129 object_unlock_exclusive(&thiz->mObject); 131 *pEngine = &thiz->mObject.mItf; 143 thiz = (CEngine *) construct(pCEngine_class, exposedMask, NULL); 144 if (NULL == thiz) { 151 memset(&thiz [all...] |
H A D | handler_bodies.c | 25 unsigned handler_AudioPlayer_gain(IObject *thiz) argument 27 CAudioPlayer *ap = (CAudioPlayer *) thiz; 34 unsigned handler_OutputMix_gain(IObject *thiz) argument 43 unsigned handler_MidiPlayer_gain(IObject *thiz) argument 51 unsigned handler_MediaPlayer_gain(IObject *thiz) argument 53 CMediaPlayer *mp = (CMediaPlayer *) thiz; 60 unsigned handler_AudioPlayer_position(IObject *thiz) argument 63 ap = (CAudioPlayer *) thiz; 71 unsigned handler_MidiPlayer_position(IObject *thiz) argument 79 unsigned handler_AudioPlayer_transport(IObject *thiz) argument 88 handler_AudioPlayer_play_state(IObject *thiz) argument 97 handler_AudioRecorder_transport(IObject *thiz) argument 106 handler_MediaPlayer_transport(IObject *thiz) argument 115 handler_MediaPlayer_play_state(IObject *thiz) argument 127 handler_AudioPlayer_bq_enqueue(IObject *thiz) argument 138 handler_AudioPlayer_abq_enqueue(IObject *thiz) argument 149 handler_MediaPlayer_abq_enqueue(IObject *thiz) argument 159 handler_MediaPlayer_position(IObject *thiz) argument 170 handler_AudioPlayer_gain(IObject *thiz) argument [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | I3DCommit.c | 26 I3DCommit *thiz = (I3DCommit *) self; local 27 IObject *thisObject = InterfaceToIObject(thiz); 29 if (thiz->mDeferred) { 30 SLuint32 myGeneration = thiz->mGeneration; 32 ++thiz->mWaiting; 34 } while (thiz->mGeneration == myGeneration); 47 I3DCommit *thiz = (I3DCommit *) self; local 48 IObject *thisObject = InterfaceToIObject(thiz); 50 thiz->mDeferred = SL_BOOLEAN_FALSE != deferred; // normalize 65 I3DCommit *thiz local [all...] |
H A D | I3DDoppler.c | 29 I3DDoppler *thiz = (I3DDoppler *) self; local 31 interface_lock_exclusive(thiz); 32 thiz->mVelocityCartesian = velocityCartesian; 33 thiz->mVelocityActive = CARTESIAN_SET_SPHERICAL_UNKNOWN; 34 interface_unlock_exclusive(thiz); 47 I3DDoppler *thiz = (I3DDoppler *) self; local 48 interface_lock_exclusive(thiz); 49 thiz->mVelocitySpherical.mAzimuth = azimuth; 50 thiz->mVelocitySpherical.mElevation = elevation; 51 thiz 67 I3DDoppler *thiz = (I3DDoppler *) self; local 114 I3DDoppler *thiz = (I3DDoppler *) self; local 131 I3DDoppler *thiz = (I3DDoppler *) self; local 153 I3DDoppler *thiz = (I3DDoppler *) self; local [all...] |
H A D | I3DGrouping.c | 37 I3DGrouping *thiz = (I3DGrouping *) self; local 38 IObject *thisObject = InterfaceToIObject(thiz); 44 interface_lock_exclusive(thiz); 45 C3DGroup *oldGroup = thiz->mGroup; 66 thiz->mGroup = newGroup; 68 interface_unlock_exclusive(thiz); 82 I3DGrouping *thiz = (I3DGrouping *) self; local 83 interface_lock_shared(thiz); 84 C3DGroup *group = thiz->mGroup; 86 interface_unlock_shared(thiz); 101 I3DGrouping *thiz = (I3DGrouping *) self; local 108 I3DGrouping *thiz = (I3DGrouping *) self; local [all...] |
H A D | I3DLocation.c | 29 I3DLocation *thiz = (I3DLocation *) self; local 31 interface_lock_exclusive(thiz); 32 thiz->mLocationCartesian = locationCartesian; 33 thiz->mLocationActive = CARTESIAN_SET_SPHERICAL_UNKNOWN; 34 interface_unlock_exclusive(thiz); 52 I3DLocation *thiz = (I3DLocation *) self; local 53 interface_lock_exclusive(thiz); 54 thiz->mLocationSpherical.mAzimuth = azimuth; 55 thiz->mLocationSpherical.mElevation = elevation; 56 thiz 73 I3DLocation *thiz = (I3DLocation *) self; local 120 I3DLocation *thiz = (I3DLocation *) self; local 174 I3DLocation *thiz = (I3DLocation *) self; local 198 I3DLocation *thiz = (I3DLocation *) self; local 222 I3DLocation *thiz = (I3DLocation *) self; local 249 I3DLocation *thiz = (I3DLocation *) self; local 276 I3DLocation *thiz = (I3DLocation *) self; local [all...] |
H A D | I3DMacroscopic.c | 32 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 33 interface_lock_exclusive(thiz); 34 thiz->mSize.mWidth = width; 35 thiz->mSize.mHeight = height; 36 thiz->mSize.mDepth = depth; 37 interface_unlock_exclusive(thiz); 53 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 54 interface_lock_shared(thiz); 55 SLmillimeter width = thiz->mSize.mWidth; 56 SLmillimeter height = thiz 79 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 103 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 131 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 154 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local 213 I3DMacroscopic *thiz = (I3DMacroscopic *) self; local [all...] |
H A D | I3DSource.c | 26 I3DSource *thiz = (I3DSource *) self; local 27 interface_lock_poke(thiz); 28 thiz->mHeadRelative = SL_BOOLEAN_FALSE != headRelative; // normalize 29 interface_unlock_poke(thiz); 43 I3DSource *thiz = (I3DSource *) self; local 44 interface_lock_peek(thiz); 45 SLboolean headRelative = thiz->mHeadRelative; 46 interface_unlock_peek(thiz); 64 I3DSource *thiz = (I3DSource *) self; local 65 interface_lock_exclusive(thiz); 84 I3DSource *thiz = (I3DSource *) self; interface_lock_shared(thiz); local 101 I3DSource *thiz = (I3DSource *) self; local 118 I3DSource *thiz = (I3DSource *) self; local 137 I3DSource *thiz = (I3DSource *) self; local 152 I3DSource *thiz = (I3DSource *) self; local 170 I3DSource *thiz = (I3DSource *) self; local 185 I3DSource *thiz = (I3DSource *) self; local 204 I3DSource *thiz = (I3DSource *) self; local 224 I3DSource *thiz = (I3DSource *) self; local 245 I3DSource *thiz = (I3DSource *) self; local 266 I3DSource *thiz = (I3DSource *) self; local 301 I3DSource *thiz = (I3DSource *) self; local [all...] |
H A D | IAcousticEchoCancellation.c | 36 IAndroidAcousticEchoCancellation *thiz = (IAndroidAcousticEchoCancellation *) self; local 37 interface_lock_exclusive(thiz); 38 thiz->mEnabled = (SLboolean) enabled; 39 if (NO_ECHOCANCEL(thiz)) { 42 android::status_t status = thiz->mAECEffect->setEnabled((bool) thiz->mEnabled); 45 interface_unlock_exclusive(thiz); 58 IAndroidAcousticEchoCancellation *thiz = (IAndroidAcousticEchoCancellation *) self; local 59 interface_lock_exclusive(thiz); 60 SLboolean enabled = thiz 114 IAndroidAcousticEchoCancellation *thiz = (IAndroidAcousticEchoCancellation *) self; local 124 IAndroidAcousticEchoCancellation *thiz = (IAndroidAcousticEchoCancellation *) self; local 131 IAndroidAcousticEchoCancellation *thiz = (IAndroidAcousticEchoCancellation *) self; local [all...] |
H A D | IAndroidBufferQueue.c | 30 static SLuint32 getAssociatedState(IAndroidBufferQueue *thiz) argument 33 switch (InterfaceToObjectID(thiz)) { 35 state = ((CMediaPlayer *) thiz->mThis)->mPlay.mState; 38 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState; 240 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 242 interface_lock_exclusive(thiz); 245 if (SL_PLAYSTATE_STOPPED == getAssociatedState(thiz)) { 246 thiz->mCallback = callback; 247 thiz->mContext = pContext; 254 interface_unlock_exclusive(thiz); 265 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 319 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 403 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 424 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 447 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 471 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local 491 IAndroidBufferQueue *thiz = (IAndroidBufferQueue *) self; local [all...] |
H A D | IAndroidConfiguration.c | 34 IAndroidConfiguration *thiz = (IAndroidConfiguration *) self; local 35 interface_lock_exclusive(thiz); 38 switch (IObjectToObjectID((thiz)->mThis)) { 42 result = android_audioRecorder_setConfig((CAudioRecorder *) thiz->mThis, configKey, 48 result = android_audioPlayer_setConfig((CAudioPlayer *) thiz->mThis, configKey, 56 interface_unlock_exclusive(thiz); 75 IAndroidConfiguration *thiz = (IAndroidConfiguration *) self; local 76 interface_lock_exclusive(thiz); 79 switch (IObjectToObjectID((thiz)->mThis)) { 81 result = android_audioRecorder_getConfig((CAudioRecorder *) thiz 106 IAndroidConfiguration *thiz = (IAndroidConfiguration *) self; local [all...] |
H A D | IAndroidEffect.cpp | 28 IAndroidEffect *thiz = (IAndroidEffect *) self; local 29 if (SL_OBJECTID_AUDIOPLAYER == IObjectToObjectID(thiz->mThis)) { 30 CAudioPlayer *ap = (CAudioPlayer *)thiz->mThis; 32 result = android_genericFx_createEffect(thiz, effectImplementationId, ap->mSessionId); 36 } else if (SL_OBJECTID_OUTPUTMIX == IObjectToObjectID(thiz->mThis)) { 37 result = android_genericFx_createEffect(thiz, effectImplementationId, 54 IAndroidEffect *thiz = (IAndroidEffect *) self; local 55 result = android_genericFx_releaseEffect(thiz, effectImplementationId); 66 IAndroidEffect *thiz = (IAndroidEffect *) self; local 67 result = android_genericFx_setEnabled(thiz, effectImplementationI 78 IAndroidEffect *thiz = (IAndroidEffect *) self; local 91 IAndroidEffect *thiz = (IAndroidEffect *) self; local 109 IAndroidEffect *thiz = (IAndroidEffect *) self; local 116 IAndroidEffect *thiz = (IAndroidEffect *) self; local [all...] |
H A D | IAndroidEffectCapabilities.c | 30 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 31 interface_lock_shared(thiz); 33 *pNumSupportedAudioEffects = thiz->mNumFx; 36 interface_unlock_shared(thiz); 49 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 50 if (index > thiz->mNumFx) { 53 interface_lock_shared(thiz); 55 *pEffectType = (SLInterfaceID) &thiz->mFxDescriptors[index].type; 58 *pEffectImplementation = (SLInterfaceID) &thiz->mFxDescriptors[index].uuid; 61 int len = strlen(thiz 81 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 91 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local 133 IAndroidEffectCapabilities *thiz = (IAndroidEffectCapabilities *) self; local [all...] |
H A D | IAndroidEffectSend.c | 32 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 33 interface_lock_exclusive(thiz); 35 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? 36 (CAudioPlayer *) thiz->mThis : NULL; 49 thiz->mSendLevel = initialLevel; 50 thiz->mEnabled = enable; 53 interface_unlock_exclusive(thiz); 68 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 69 interface_lock_shared(thiz); 71 SLboolean enable = thiz 91 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 124 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 152 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 191 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local 232 IAndroidEffectSend *thiz = (IAndroidEffectSend *) self; local [all...] |
H A D | IAudioDecoderCapabilities.c | 67 IAudioDecoderCapabilities *thiz = (IAudioDecoderCapabilities *) self; local 68 thiz->mItf = &IAudioDecoderCapabilities_Itf;
|
H A D | IAudioEncoder.c | 30 IAudioEncoder *thiz = (IAudioEncoder *) self; local 32 interface_lock_exclusive(thiz); 33 thiz->mSettings = settings; 34 interface_unlock_exclusive(thiz); 50 IAudioEncoder *thiz = (IAudioEncoder *) self; local 51 interface_lock_shared(thiz); 52 SLAudioEncoderSettings settings = thiz->mSettings; 53 interface_unlock_shared(thiz); 69 IAudioEncoder *thiz = (IAudioEncoder *) self; local 70 thiz [all...] |
H A D | IAudioEncoderCapabilities.c | 68 IAudioEncoderCapabilities *thiz = (IAudioEncoderCapabilities *) self; local 69 thiz->mItf = &IAudioEncoderCapabilities_Itf;
|
H A D | IAudioIODeviceCapabilities.c | 76 IAudioIODeviceCapabilities * thiz = (IAudioIODeviceCapabilities *) self; local 77 interface_lock_exclusive(thiz); 78 thiz->mAvailableAudioInputsChangedCallback = callback; 79 thiz->mAvailableAudioInputsChangedContext = pContext; 80 interface_unlock_exclusive(thiz); 146 IAudioIODeviceCapabilities * thiz = (IAudioIODeviceCapabilities *) self; local 147 interface_lock_exclusive(thiz); 148 thiz->mAvailableAudioOutputsChangedCallback = callback; 149 thiz->mAvailableAudioOutputsChangedContext = pContext; 150 interface_unlock_exclusive(thiz); 163 IAudioIODeviceCapabilities * thiz = (IAudioIODeviceCapabilities *) self; local 315 IAudioIODeviceCapabilities *thiz = (IAudioIODeviceCapabilities *) self; local [all...] |
H A D | IAutomaticGainControl.c | 35 IAndroidAutomaticGainControl *thiz = (IAndroidAutomaticGainControl *) self; local 36 interface_lock_exclusive(thiz); 37 thiz->mEnabled = (SLboolean) enabled; 38 if (NO_AUTOGAIN(thiz)) { 41 android::status_t status = thiz->mAGCEffect->setEnabled((bool) thiz->mEnabled); 44 interface_unlock_exclusive(thiz); 56 IAndroidAutomaticGainControl *thiz = (IAndroidAutomaticGainControl *) self; local 57 interface_lock_exclusive(thiz); 58 SLboolean enabled = thiz 111 IAndroidAutomaticGainControl *thiz = (IAndroidAutomaticGainControl *) self; local 121 IAndroidAutomaticGainControl *thiz = (IAndroidAutomaticGainControl *) self; local 128 IAndroidAutomaticGainControl *thiz = (IAndroidAutomaticGainControl *) self; local [all...] |
H A D | IBassBoost.c | 42 IBassBoost *thiz = (IBassBoost *) self; local 43 interface_lock_exclusive(thiz); 44 thiz->mEnabled = (SLboolean) enabled; 48 if (NO_BASSBOOST(thiz)) { 51 android::status_t status = thiz->mBassBoostEffect->setEnabled((bool) thiz->mEnabled); 55 interface_unlock_exclusive(thiz); 68 IBassBoost *thiz = (IBassBoost *) self; local 69 interface_lock_exclusive(thiz); 70 SLboolean enabled = thiz 96 IBassBoost *thiz = (IBassBoost *) self; local 124 IBassBoost *thiz = (IBassBoost *) self; local 187 IBassBoost *thiz = (IBassBoost *) self; local 201 IBassBoost *thiz = (IBassBoost *) self; local 210 IBassBoost *thiz = (IBassBoost *) self; local [all...] |
H A D | IBufferQueue.c | 26 static SLuint32 getAssociatedState(IBufferQueue *thiz) argument 29 switch (InterfaceToObjectID(thiz)) { 31 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState; 34 state = ((CAudioRecorder *) thiz->mThis)->mRecord.mState; 56 IBufferQueue *thiz = (IBufferQueue *) self; local 57 interface_lock_exclusive(thiz); 58 BufferHeader *oldRear = thiz->mRear, *newRear; 59 if ((newRear = oldRear + 1) == &thiz->mArray[thiz->mNumBuffers + 1]) { 60 newRear = thiz 85 IBufferQueue *thiz = (IBufferQueue *) self; local 128 IBufferQueue *thiz = (IBufferQueue *) self; local 151 IBufferQueue *thiz = (IBufferQueue *) self; local 176 IBufferQueue *thiz = (IBufferQueue *) self; local 206 IBufferQueue *thiz = (IBufferQueue *) self; local [all...] |
H A D | IDeviceVolume.c | 62 IDeviceVolume *thiz = (IDeviceVolume *) self; local 63 interface_lock_poke(thiz); 64 thiz->mVolume[~deviceID] = volume; 65 interface_unlock_poke(thiz); 94 IDeviceVolume *thiz = (IDeviceVolume *) self; local 95 interface_lock_peek(thiz); 96 SLint32 volume = thiz->mVolume[~deviceID]; 97 interface_unlock_peek(thiz); 120 IDeviceVolume *thiz = (IDeviceVolume *) self; local 121 thiz [all...] |
H A D | IDynamicInterfaceManagement.c | 29 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local 30 assert(NULL != thiz); 31 IObject *thisObject = InterfaceToIObject(thiz); 92 slDynamicInterfaceManagementCallback callback = thiz->mCallback; 93 void *context = thiz->mContext; 99 (*callback)(&thiz->mItf, context, SL_DYNAMIC_ITF_EVENT_ASYNC_TERMINATION, result, iid); 114 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local 115 IObject *thisObject = InterfaceToIObject(thiz); 138 result = ThreadPool_add_ppi(&thisObject->mEngine->mThreadPool, HandleAdd, thiz, 210 IDynamicInterfaceManagement *thiz local 285 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local 362 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local 445 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local 466 IDynamicInterfaceManagement *thiz = (IDynamicInterfaceManagement *) self; local [all...] |
H A D | IDynamicSource.c | 29 IDynamicSource *thiz = (IDynamicSource *) self; local 38 IObject *thisObject = InterfaceToIObject(thiz); 41 thiz->mDataSource = pDataSource; 56 IDynamicSource *thiz = (IDynamicSource *) self; local 57 thiz->mItf = &IDynamicSource_Itf; 59 thiz->mDataSource = NULL;
|