/frameworks/wilhelm/src/ |
locks.h | 20 extern void object_lock_exclusive_(IObject *thiz, const char *file, int line); 21 extern void object_unlock_exclusive_(IObject *thiz, const char *file, int line); 22 extern void object_unlock_exclusive_attributes_(IObject *thiz, unsigned attr, 24 extern void object_cond_wait_(IObject *thiz, const char *file, int line); 26 extern void object_lock_exclusive(IObject *thiz); 27 extern void object_unlock_exclusive(IObject *thiz); 28 extern void object_unlock_exclusive_attributes(IObject *thiz, unsigned attr); 29 extern void object_cond_wait(IObject *thiz); 31 extern void object_cond_signal(IObject *thiz); 32 extern void object_cond_broadcast(IObject *thiz); [all...] |
locks.c | 45 void object_lock_exclusive_(IObject *thiz, const char *file, int line) 48 ok = pthread_mutex_trylock(&thiz->mMutex); 51 int32_t oldGeneration = thiz->mGeneration; 60 ok = pthread_mutex_timedlock(&thiz->mMutex, &ts); 74 int32_t newGeneration = thiz->mGeneration; 84 pthread_t owner = thiz->mOwner; 88 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, 89 *(void **)&owner, ownerTid, thiz->mFile, thiz->mLine); 93 ok = pthread_mutex_lock(&thiz->mMutex) [all...] |
/frameworks/wilhelm/src/itf/ |
IThreadSync.c | 26 IThreadSync *thiz = (IThreadSync *) self; local 27 interface_lock_exclusive(thiz); 29 if (thiz->mInCriticalSection) { 30 if (!pthread_equal(thiz->mOwner, pthread_self())) { 31 ++thiz->mWaiting; 32 interface_cond_wait(thiz); 39 thiz->mInCriticalSection = SL_BOOLEAN_TRUE; 40 thiz->mOwner = pthread_self(); 44 interface_unlock_exclusive(thiz); 54 IThreadSync *thiz = (IThreadSync *) self local 80 IThreadSync *thiz = (IThreadSync *) self; local 89 IThreadSync *thiz = (IThreadSync *) self; local [all...] |
IBufferQueue.c | 26 static SLuint32 getAssociatedState(IBufferQueue *thiz) 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->mArray 85 IBufferQueue *thiz = (IBufferQueue *) self; local 127 IBufferQueue *thiz = (IBufferQueue *) self; local 150 IBufferQueue *thiz = (IBufferQueue *) self; local 175 IBufferQueue *thiz = (IBufferQueue *) self; local 204 IBufferQueue *thiz = (IBufferQueue *) self; local [all...] |
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 = (I3DCommit *) self local [all...] |
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->mVelocitySpherical.mSpeed = speed 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...] |
IMIDITempo.c | 29 IMIDITempo *thiz = (IMIDITempo *) self; local 30 interface_lock_poke(thiz); 31 thiz->mTicksPerQuarterNote = tpqn; 32 interface_unlock_poke(thiz); 47 IMIDITempo *thiz = (IMIDITempo *) self; local 48 interface_lock_peek(thiz); 49 SLuint32 ticksPerQuarterNote = thiz->mTicksPerQuarterNote; 50 interface_unlock_peek(thiz); 67 IMIDITempo *thiz = (IMIDITempo *) self; local 68 interface_lock_poke(thiz); 85 IMIDITempo *thiz = (IMIDITempo *) self; local 106 IMIDITempo *thiz = (IMIDITempo *) self; local [all...] |
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->mLocationSpherical.mDistance = distance 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...] |
IMIDIMessage.c | 30 //IMIDIMessage *thiz = (IMIDIMessage *) self; 43 IMIDIMessage *thiz = (IMIDIMessage *) self; local 44 interface_lock_exclusive(thiz); 45 thiz->mMetaEventCallback = callback; 46 thiz->mMetaEventContext = pContext; 47 interface_unlock_exclusive(thiz); 59 IMIDIMessage *thiz = (IMIDIMessage *) self; local 60 interface_lock_exclusive(thiz); 61 thiz->mMessageCallback = callback; 62 thiz->mMessageContext = pContext 85 IMIDIMessage *thiz = (IMIDIMessage *) self; local 105 IMIDIMessage *thiz = (IMIDIMessage *) self; local 125 IMIDIMessage *thiz = (IMIDIMessage *) self; local [all...] |
IMIDIMuteSolo.c | 30 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 32 interface_lock_exclusive(thiz); 34 thiz->mChannelMuteMask |= mask; 36 thiz->mChannelMuteMask &= ~mask; 37 interface_unlock_exclusive(thiz); 53 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 54 interface_lock_peek(thiz); 55 SLuint16 mask = thiz->mChannelMuteMask; 56 interface_unlock_peek(thiz); 73 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self local 96 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 115 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 130 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 153 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 173 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 195 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local 225 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; local [all...] |
IRecord.c | 31 IRecord *thiz = (IRecord *) self; local 32 interface_lock_exclusive(thiz); 33 thiz->mState = state; 35 android_audioRecorder_setRecordState(InterfaceToCAudioRecorder(thiz), state); 37 interface_unlock_exclusive(thiz); 54 IRecord *thiz = (IRecord *) self; local 58 interface_lock_shared(thiz); 59 SLuint32 state = thiz->mState; 60 interface_unlock_shared(thiz); 73 IRecord *thiz = (IRecord *) self local 94 IRecord *thiz = (IRecord *) self; local 121 IRecord *thiz = (IRecord *) self; local 145 IRecord *thiz = (IRecord *) self; local 167 IRecord *thiz = (IRecord *) self; local 186 IRecord *thiz = (IRecord *) self; local 211 IRecord *thiz = (IRecord *) self; local 239 IRecord *thiz = (IRecord *) self; local 262 IRecord *thiz = (IRecord *) self; local 284 IRecord *thiz = (IRecord *) self; local 313 IRecord *thiz = (IRecord *) self; local [all...] |
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...] |
IPlay.c | 31 IPlay *thiz = (IPlay *) self; local 35 CAudioPlayer *audioPlayer = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? 36 (CAudioPlayer *) thiz->mThis : NULL; 38 interface_lock_exclusive(thiz); 39 SLuint32 oldState = thiz->mState; 42 for (;; interface_cond_wait(thiz)) { 69 thiz->mState = state; 84 thiz->mState = SL_PLAYSTATE_STOPPING; 99 thiz->mState = state; 105 interface_unlock_exclusive_attributes(thiz, attr) 124 IPlay *thiz = (IPlay *) self; local 160 IPlay *thiz = (IPlay *) self; local 202 IPlay *thiz = (IPlay *) self; local 244 IPlay *thiz = (IPlay *) self; local 264 IPlay *thiz = (IPlay *) self; local 293 IPlay *thiz = (IPlay *) self; local 312 IPlay *thiz = (IPlay *) self; local 337 IPlay *thiz = (IPlay *) self; local 365 IPlay *thiz = (IPlay *) self; local 388 IPlay *thiz = (IPlay *) self; local 429 IPlay *thiz = (IPlay *) self; local 458 IPlay *thiz = (IPlay *) self; local [all...] |
IPitch.c | 26 IPitch *thiz = (IPitch *) self; local 28 if (!(thiz->mMinPitch <= pitch && pitch <= thiz->mMaxPitch)) { 31 interface_lock_poke(thiz); 32 thiz->mPitch = pitch; 33 interface_unlock_poke(thiz); 48 IPitch *thiz = (IPitch *) self; local 49 interface_lock_peek(thiz); 50 SLpermille pitch = thiz->mPitch; 51 interface_unlock_peek(thiz); 70 IPitch *thiz = (IPitch *) self; local 92 IPitch *thiz = (IPitch *) self; local [all...] |
IRatePitch.c | 26 IRatePitch *thiz = (IRatePitch *) self; local 27 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { 30 interface_lock_poke(thiz); 31 thiz->mRate = rate; 32 interface_unlock_poke(thiz); 47 IRatePitch *thiz = (IRatePitch *) self; local 48 interface_lock_peek(thiz); 49 SLpermille rate = thiz->mRate; 50 interface_unlock_peek(thiz); 69 IRatePitch *thiz = (IRatePitch *) self; local 91 IRatePitch *thiz = (IRatePitch *) self; local [all...] |
IVolume.c | 29 IVolume *thiz = (IVolume *) self; local 30 interface_lock_exclusive(thiz); 31 SLmillibel oldLevel = thiz->mLevel; 33 thiz->mLevel = level; 34 interface_unlock_exclusive_attributes(thiz, ATTR_GAIN); 36 interface_unlock_exclusive(thiz); 52 IVolume *thiz = (IVolume *) self; local 53 interface_lock_shared(thiz); 54 SLmillibel level = thiz->mLevel; 55 interface_unlock_shared(thiz); 83 IVolume *thiz = (IVolume *) self; local 106 IVolume *thiz = (IVolume *) self; local 122 IVolume *thiz = (IVolume *) self; local 145 IVolume *thiz = (IVolume *) self; local 164 IVolume *thiz = (IVolume *) self; local 187 IVolume *thiz = (IVolume *) self; local 213 IVolume *thiz = (IVolume *) self; local [all...] |
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->mSize.mHeight 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...] |
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->mItf = &IAudioEncoder_Itf [all...] |
IVisualization.c | 30 IVisualization *thiz = (IVisualization *) self; local 31 interface_lock_exclusive(thiz); 32 thiz->mCallback = callback; 33 thiz->mContext = pContext; 34 thiz->mRate = rate; 35 interface_unlock_exclusive(thiz); 65 IVisualization *thiz = (IVisualization *) self; local 66 thiz->mItf = &IVisualization_Itf; 67 thiz->mCallback = NULL; 68 thiz->mContext = NULL [all...] |
IPresetReverb.c | 34 IPresetReverb *thiz = (IPresetReverb *) self; local 43 interface_lock_exclusive(thiz); 44 thiz->mPreset = preset; 48 if (NO_PRESETREVERB(thiz)) { 51 android::status_t status = android_prev_setPreset(thiz->mPresetReverbEffect, preset); 55 interface_unlock_exclusive(thiz); 72 IPresetReverb *thiz = (IPresetReverb *) self; local 73 interface_lock_shared(thiz); 76 preset = thiz->mPreset; 79 if (NO_PRESETREVERB(thiz)) { 105 IPresetReverb *thiz = (IPresetReverb *) self; local 118 IPresetReverb *thiz = (IPresetReverb *) self; local 127 IPresetReverb *thiz = (IPresetReverb *) self; local [all...] |
IPlaybackRate.c | 26 IPlaybackRate *thiz = (IPlaybackRate *) self; local 28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { 31 interface_lock_exclusive(thiz); 33 CAudioPlayer *ap = (SL_OBJECTID_AUDIOPLAYER == InterfaceToObjectID(thiz)) ? 34 (CAudioPlayer *) thiz->mThis : NULL; 36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); 44 thiz->mRate = rate; 46 interface_unlock_exclusive(thiz); 60 IPlaybackRate *thiz = (IPlaybackRate *) self local 76 IPlaybackRate *thiz = (IPlaybackRate *) self; local 115 IPlaybackRate *thiz = (IPlaybackRate *) self; local 135 IPlaybackRate *thiz = (IPlaybackRate *) self; local 162 IPlaybackRate *thiz = (IPlaybackRate *) self; local 190 IPlaybackRate *thiz = (IPlaybackRate *) self; local [all...] |
/frameworks/wilhelm/src/objects/ |
C3DGroup.c | 26 C3DGroup *thiz = (C3DGroup *) self; local 28 if (0 == thiz->mMemberMask) { 31 SL_LOGE("Object::Destroy(%p) for 3DGroup ignored; mMemberMask=0x%x", thiz, thiz->mMemberMask);
|
CMediaPlayer.c | 32 CMediaPlayer *thiz = (CMediaPlayer *) self; local 35 result = android_Player_realize(thiz, async); 51 CMediaPlayer *thiz = (CMediaPlayer *) self; local 52 freeDataLocatorFormat(&thiz->mDataSource); 53 freeDataLocatorFormat(&thiz->mBankSource); 54 freeDataLocatorFormat(&thiz->mAudioSink); 55 freeDataLocatorFormat(&thiz->mImageVideoSink); 56 freeDataLocatorFormat(&thiz->mVibraSink); 57 freeDataLocatorFormat(&thiz->mLEDArraySink); 59 android_Player_destroy(thiz); 67 CMediaPlayer *thiz = (CMediaPlayer *) self; local [all...] |
CAudioRecorder.c | 29 CAudioRecorder *thiz = (CAudioRecorder *) self; local 30 result = android_audioRecorder_realize(thiz, async); 49 CAudioRecorder *thiz = (CAudioRecorder *) self; local 50 freeDataLocatorFormat(&thiz->mDataSource); 51 freeDataLocatorFormat(&thiz->mDataSink); 53 android_audioRecorder_destroy(thiz); 62 CAudioRecorder *thiz = (CAudioRecorder *) self; local 64 android_audioRecorder_preDestroy(thiz);
|
/frameworks/wilhelm/src/desktop/ |
SLSndFile.h | 21 extern SLresult SndFile_checkAudioPlayerSourceSink(CAudioPlayer *thiz); 22 extern void audioPlayerTransportUpdate(CAudioPlayer *thiz); 23 extern SLresult SndFile_Realize(CAudioPlayer *thiz); 24 extern void SndFile_Destroy(CAudioPlayer *thiz);
|