Lines Matching refs:jetHandle
165 p = &easHandle->jetHandle->segQueue[queueNum]; in JET_PrepareSegment()
185 PARSER_DATA_DLS_COLLECTION, (EAS_I32) easHandle->jetHandle->libHandles[p->libNum]); in JET_PrepareSegment()
215 pSeg = &easHandle->jetHandle->segQueue[queueNum]; in JET_StartPlayback()
219 easHandle->jetHandle->segQueue[queueNum].state = JET_STATE_PLAYING; in JET_StartPlayback()
241 result = EAS_CloseFile(easHandle, easHandle->jetHandle->segQueue[queueNum].streamHandle); in JET_CloseSegment()
245 easHandle->jetHandle->segQueue[queueNum].streamHandle = NULL; in JET_CloseSegment()
246 easHandle->jetHandle->segQueue[queueNum].state = JET_STATE_CLOSED; in JET_CloseSegment()
247 easHandle->jetHandle->numQueuedSegments--; in JET_CloseSegment()
264 result = EAS_HWFileSeek(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, pos); in JetParseInfoChunk()
274 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &infoType, EAS… in JetParseInfoChunk()
279 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &temp, EAS_FAL… in JetParseInfoChunk()
288 easHandle->jetHandle->numSegments = (EAS_U8) temp; in JetParseInfoChunk()
295 easHandle->jetHandle->numLibraries = (EAS_U8) temp; in JetParseInfoChunk()
334 if (easHandle->jetHandle->jetFileHandle != NULL) in JET_OpenFile()
338 …result = EAS_HWOpenFile(easHandle->hwInstData, locator, &easHandle->jetHandle->jetFileHandle, EAS_… in JET_OpenFile()
343 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &chunkType, EA… in JET_OpenFile()
354 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &dataSize, EAS… in JET_OpenFile()
363 result = EAS_HWFileSeek(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, pos); in JET_OpenFile()
368 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &chunkType, EA… in JET_OpenFile()
372 …result = EAS_HWGetDWord(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &chunkSize, EA… in JET_OpenFile()
384 if (smfChunkNum < easHandle->jetHandle->numSegments) in JET_OpenFile()
385 easHandle->jetHandle->segmentOffsets[smfChunkNum++] = pos; in JET_OpenFile()
391 if (dlsChunkNum < easHandle->jetHandle->numLibraries) in JET_OpenFile()
392 …ult = DLSParser(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, pos, &easHandle->jetHa… in JET_OpenFile()
398 easHandle->jetHandle->appDataOffset = pos; in JET_OpenFile()
399 easHandle->jetHandle->appDataSize = chunkSize; in JET_OpenFile()
416 EAS_HWCloseFile(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle); in JET_OpenFile()
431 if (easHandle->jetHandle->appDataSize == 0) in JET_GetAppData()
438 *pAppDataOffset = easHandle->jetHandle->appDataOffset; in JET_GetAppData()
439 *pAppDataSize = easHandle->jetHandle->appDataSize; in JET_GetAppData()
457 if (easHandle->jetHandle->segQueue[index].streamHandle != NULL) in JET_CloseFile()
466 if ((result == EAS_SUCCESS) && (easHandle->jetHandle->jetFileHandle != NULL)) in JET_CloseFile()
468 result = EAS_HWCloseFile(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle); in JET_CloseFile()
470 easHandle->jetHandle->jetFileHandle = NULL; in JET_CloseFile()
490 if (easHandle->jetHandle != NULL) in JET_Init()
502 easHandle->jetHandle = pJet; in JET_Init()
527 for(i = 0 ; i < easHandle->jetHandle->numLibraries ; i++) { in JET_Shutdown()
528 if(easHandle->jetHandle->libHandles[i] != NULL) { in JET_Shutdown()
529 EAS_HWFree(easHandle->hwInstData, easHandle->jetHandle->libHandles[i]); in JET_Shutdown()
530 easHandle->jetHandle->libHandles[i] = NULL; in JET_Shutdown()
534 EAS_HWFree(easHandle->hwInstData, easHandle->jetHandle); in JET_Shutdown()
535 easHandle->jetHandle = NULL; in JET_Shutdown()
549 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_Status()
561 pStatus->paused = !(easHandle->jetHandle->flags & JET_FLAGS_PLAYING); in JET_Status()
562 pStatus->numQueuedSegments = easHandle->jetHandle->numQueuedSegments; in JET_Status()
563 pStatus->currentPlayingSegment = easHandle->jetHandle->playSegment; in JET_Status()
564 pStatus->currentQueuedSegment = easHandle->jetHandle->queueSegment; in JET_Status()
590 gotEvent = JET_ReadQueue(easHandle->jetHandle->appEventQueue, in JET_GetEvent()
591 &easHandle->jetHandle->appEventQueueRead, in JET_GetEvent()
592 easHandle->jetHandle->appEventQueueWrite, in JET_GetEvent()
622 if (segmentNum >= easHandle->jetHandle->numSegments) in JET_QueueSegment()
626 if (libNum >= easHandle->jetHandle->numLibraries) in JET_QueueSegment()
630 p = &easHandle->jetHandle->segQueue[easHandle->jetHandle->queueSegment]; in JET_QueueSegment()
643 …result = EAS_OpenJETStream(easHandle, easHandle->jetHandle->jetFileHandle, easHandle->jetHandle->s… in JET_QueueSegment()
649 if (++easHandle->jetHandle->numQueuedSegments < SEG_QUEUE_DEPTH) in JET_QueueSegment()
651 result = JET_PrepareSegment(easHandle, easHandle->jetHandle->queueSegment); in JET_QueueSegment()
657 … result = EAS_HWDupHandle(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &fileHandle); in JET_QueueSegment()
661 easHandle->jetHandle->jetFileHandle = fileHandle; in JET_QueueSegment()
662 … easHandle->jetHandle->queueSegment = (EAS_U8) JET_NextSegment(easHandle->jetHandle->queueSegment); in JET_QueueSegment()
681 if (easHandle->jetHandle->flags & JET_FLAGS_PLAYING) in JET_Play()
687 …if (((index == easHandle->jetHandle->playSegment) && (easHandle->jetHandle->segQueue[index].state … in JET_Play()
688 (easHandle->jetHandle->segQueue[index].state == JET_STATE_PAUSED)) in JET_Play()
701 easHandle->jetHandle->flags |= JET_FLAGS_PLAYING; in JET_Play()
720 if ((easHandle->jetHandle->flags & JET_FLAGS_PLAYING) == 0) in JET_Pause()
726 if (easHandle->jetHandle->segQueue[index].state == JET_STATE_PLAYING) in JET_Pause()
728 …result = EAS_Pause(easHandle, easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].st… in JET_Pause()
731 … easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].state = JET_STATE_PAUSED; in JET_Pause()
740 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Pause()
755 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlags()
798 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlag()
855 if (easHandle->jetHandle->muteQueue[i] == clipID) in JET_TriggerClip()
860 if (easHandle->jetHandle->muteQueue[i] == 0) in JET_TriggerClip()
866 easHandle->jetHandle->muteQueue[index] = (EAS_U8) clipID | JET_CLIP_TRIGGER_FLAG; in JET_TriggerClip()
889 while (JET_ReadQueue(easHandle->jetHandle->jetEventQueue, in JET_Process()
890 &easHandle->jetHandle->jetEventQueueRead, in JET_Process()
891 easHandle->jetHandle->jetEventQueueWrite, in JET_Process()
903 … (easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].streamHandle != NULL)) in JET_Process()
908 index = playIndex = easHandle->jetHandle->playSegment; in JET_Process()
911 pSeg = &easHandle->jetHandle->segQueue[index]; in JET_Process()
953 easHandle->jetHandle->playSegment = (EAS_U8) JET_NextSegment(index); in JET_Process()
1005 if (easHandle->jetHandle->numQueuedSegments == 0) in JET_Process()
1006 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Process()
1021 if (easHandle->jetHandle == NULL) in JET_Event()
1034 … if ((easHandle->jetHandle->muteQueue[i] & JET_CLIP_ID_MASK) == (value & JET_CLIP_ID_MASK)) in JET_Event()
1037 pSeg = &easHandle->jetHandle->segQueue[segTrack >> JET_EVENT_SEG_SHIFT]; in JET_Event()
1041 … if ((easHandle->jetHandle->muteQueue[i] & JET_CLIP_TRIGGER_FLAG) && ((value & 0x40) > 0)) in JET_Event()
1044 easHandle->jetHandle->muteQueue[i] &= ~JET_CLIP_TRIGGER_FLAG; in JET_Event()
1054 easHandle->jetHandle->muteQueue[i] = 0; in JET_Event()
1067 …if ((controller >= easHandle->jetHandle->config.appEventRangeLow) && (controller <= easHandle->jet… in JET_Event()
1070 …event |= easHandle->jetHandle->segQueue[(segTrack & JET_EVENT_SEG_MASK) >> JET_EVENT_SEG_SHIFT].us… in JET_Event()
1074 JET_WriteQueue(easHandle->jetHandle->appEventQueue, in JET_Event()
1075 &easHandle->jetHandle->appEventQueueWrite, in JET_Event()
1076 easHandle->jetHandle->appEventQueueRead, in JET_Event()
1088 JET_WriteQueue(easHandle->jetHandle->jetEventQueue, in JET_Event()
1089 &easHandle->jetHandle->jetEventQueueWrite, in JET_Event()
1090 easHandle->jetHandle->jetEventQueueRead, in JET_Event()
1112 if (easHandle->jetHandle->segQueue[index].state == JET_STATE_PLAYING) in JET_Clear_Queue()
1114 result = EAS_Pause(easHandle, easHandle->jetHandle->segQueue[index].streamHandle); in JET_Clear_Queue()
1118 easHandle->jetHandle->segQueue[index].state = JET_STATE_PAUSED; in JET_Clear_Queue()
1125 if (easHandle->jetHandle->segQueue[index].streamHandle != NULL) in JET_Clear_Queue()
1136 easHandle->jetHandle->muteQueue[index] = 0; in JET_Clear_Queue()
1139 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Clear_Queue()
1140 easHandle->jetHandle->playSegment = easHandle->jetHandle->queueSegment = 0; in JET_Clear_Queue()