• Home
  • Raw
  • Download

Lines Matching refs:easHandle

158 static EAS_RESULT JET_PrepareSegment (EAS_DATA_HANDLE easHandle, EAS_I32 queueNum)  in JET_PrepareSegment()  argument
165 p = &easHandle->jetHandle->segQueue[queueNum]; in JET_PrepareSegment()
166 result = EAS_Prepare(easHandle, p->streamHandle); in JET_PrepareSegment()
171 result = EAS_Pause(easHandle, p->streamHandle); in JET_PrepareSegment()
177 result = EAS_IntSetStrmParam(easHandle, p->streamHandle, PARSER_DATA_JET_CB, queueNum); in JET_PrepareSegment()
184 result = EAS_IntSetStrmParam(easHandle, p->streamHandle, in JET_PrepareSegment()
185 PARSER_DATA_DLS_COLLECTION, (EAS_I32) easHandle->jetHandle->libHandles[p->libNum]); in JET_PrepareSegment()
193 result = EAS_SetTransposition(easHandle, p->streamHandle, p->transpose); in JET_PrepareSegment()
207 static EAS_RESULT JET_StartPlayback (EAS_DATA_HANDLE easHandle, EAS_I32 queueNum) in JET_StartPlayback() argument
215 pSeg = &easHandle->jetHandle->segQueue[queueNum]; in JET_StartPlayback()
218 result = EAS_Resume(easHandle, pSeg->streamHandle); in JET_StartPlayback()
219 easHandle->jetHandle->segQueue[queueNum].state = JET_STATE_PLAYING; in JET_StartPlayback()
223 …result = EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg… in JET_StartPlayback()
234 EAS_INLINE EAS_INT JET_CloseSegment (EAS_DATA_HANDLE easHandle, EAS_INT queueNum) in JET_CloseSegment() argument
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()
257 static EAS_RESULT JetParseInfoChunk (EAS_DATA_HANDLE easHandle, EAS_I32 pos, EAS_I32 chunkSize) in JetParseInfoChunk() argument
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()
323 EAS_PUBLIC EAS_RESULT JET_OpenFile (EAS_DATA_HANDLE easHandle, EAS_FILE_LOCATOR locator) in JET_OpenFile() argument
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()
380 result = JetParseInfoChunk(easHandle, pos, chunkSize); 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 …result = DLSParser(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, pos, &easHandle->je… 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()
427 EAS_RESULT JET_GetAppData (EAS_DATA_HANDLE easHandle, EAS_I32 *pAppDataOffset, EAS_I32 *pAppDataSiz… in JET_GetAppData() argument
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()
449 EAS_PUBLIC EAS_RESULT JET_CloseFile (EAS_DATA_HANDLE easHandle) in JET_CloseFile() argument
457 if (easHandle->jetHandle->segQueue[index].streamHandle != NULL) in JET_CloseFile()
459 result = JET_CloseSegment(easHandle, index); 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()
482 EAS_PUBLIC EAS_RESULT JET_Init (EAS_DATA_HANDLE easHandle, const S_JET_CONFIG *pConfig, EAS_INT con… in JET_Init() argument
488 if (easHandle == NULL) in JET_Init()
490 if (easHandle->jetHandle != NULL) in JET_Init()
496 pJet = EAS_HWMalloc(easHandle->hwInstData, sizeof(S_JET_DATA)); in JET_Init()
502 easHandle->jetHandle = pJet; in JET_Init()
518 EAS_PUBLIC EAS_RESULT JET_Shutdown (EAS_DATA_HANDLE easHandle) in JET_Shutdown() argument
524 result = JET_CloseFile(easHandle); in JET_Shutdown()
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()
545 EAS_PUBLIC EAS_RESULT JET_Status (EAS_DATA_HANDLE easHandle, S_JET_STATUS *pStatus) in JET_Status() argument
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()
569 if ((result = EAS_GetLocation(easHandle, pSeg->streamHandle, &location)) == EAS_SUCCESS) in JET_Status()
584 EAS_PUBLIC EAS_BOOL JET_GetEvent (EAS_DATA_HANDLE easHandle, EAS_U32 *pEventRaw, S_JET_EVENT *pEven… in JET_GetEvent() argument
590 gotEvent = JET_ReadQueue(easHandle->jetHandle->appEventQueue, in JET_GetEvent()
591 &easHandle->jetHandle->appEventQueueRead, in JET_GetEvent()
592 easHandle->jetHandle->appEventQueueWrite, in JET_GetEvent()
613 EAS_PUBLIC EAS_RESULT JET_QueueSegment (EAS_DATA_HANDLE easHandle, EAS_INT segmentNum, EAS_INT libN… in JET_QueueSegment() argument
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()
662easHandle->jetHandle->queueSegment = (EAS_U8) JET_NextSegment(easHandle->jetHandle->queueSegment); in JET_QueueSegment()
672 EAS_PUBLIC EAS_RESULT JET_Play (EAS_DATA_HANDLE easHandle) in JET_Play() argument
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()
690 result = JET_StartPlayback(easHandle, index); in JET_Play()
701 easHandle->jetHandle->flags |= JET_FLAGS_PLAYING; in JET_Play()
711 EAS_PUBLIC EAS_RESULT JET_Pause (EAS_DATA_HANDLE easHandle) in JET_Pause() argument
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()
731easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].state = JET_STATE_PAUSED; in JET_Pause()
740 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Pause()
750 EAS_PUBLIC EAS_RESULT JET_SetMuteFlags (EAS_DATA_HANDLE easHandle, EAS_U32 muteFlags, EAS_BOOL sync) in JET_SetMuteFlags() argument
755 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlags()
763 …return EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) muteFl… in JET_SetMuteFlags()
786 EAS_PUBLIC EAS_RESULT JET_SetMuteFlag (EAS_DATA_HANDLE easHandle, EAS_INT trackNum, EAS_BOOL muteFl… in JET_SetMuteFlag() argument
798 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlag()
809 …return EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg->… in JET_SetMuteFlag()
840 EAS_PUBLIC EAS_RESULT JET_TriggerClip (EAS_DATA_HANDLE easHandle, EAS_INT clipID) in JET_TriggerClip() argument
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()
876 EAS_PUBLIC EAS_RESULT JET_Process (EAS_DATA_HANDLE easHandle) in JET_Process() argument
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()
916 result = EAS_State(easHandle, pSeg->streamHandle, &state); in JET_Process()
931 result = EAS_Locate(easHandle, pSeg->streamHandle, 0, EAS_FALSE); in JET_Process()
940 …result = EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg… in JET_Process()
953 easHandle->jetHandle->playSegment = (EAS_U8) JET_NextSegment(index); in JET_Process()
962 result = JET_CloseSegment(easHandle, index); in JET_Process()
971 result = JET_StartPlayback(easHandle, index); in JET_Process()
982 result = JET_PrepareSegment(easHandle, index); in JET_Process()
1005 if (easHandle->jetHandle->numQueuedSegments == 0) in JET_Process()
1006 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Process()
1017 void JET_Event (EAS_DATA_HANDLE easHandle, EAS_U32 segTrack, EAS_U8 channel, EAS_U8 controller, EAS… in JET_Event() argument
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()
1056 …EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg->muteFla… 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()
1102 EAS_RESULT JET_Clear_Queue(EAS_DATA_HANDLE easHandle) in JET_Clear_Queue() argument
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()
1127 result = JET_CloseSegment(easHandle, index); 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()