• 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
523 result = JET_CloseFile(easHandle); in JET_Shutdown()
526 EAS_HWFree(easHandle->hwInstData, easHandle->jetHandle); in JET_Shutdown()
527 easHandle->jetHandle = NULL; in JET_Shutdown()
537 EAS_PUBLIC EAS_RESULT JET_Status (EAS_DATA_HANDLE easHandle, S_JET_STATUS *pStatus) in JET_Status() argument
541 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_Status()
553 pStatus->paused = !(easHandle->jetHandle->flags & JET_FLAGS_PLAYING); in JET_Status()
554 pStatus->numQueuedSegments = easHandle->jetHandle->numQueuedSegments; in JET_Status()
555 pStatus->currentPlayingSegment = easHandle->jetHandle->playSegment; in JET_Status()
556 pStatus->currentQueuedSegment = easHandle->jetHandle->queueSegment; in JET_Status()
561 if ((result = EAS_GetLocation(easHandle, pSeg->streamHandle, &location)) == EAS_SUCCESS) in JET_Status()
576 EAS_PUBLIC EAS_BOOL JET_GetEvent (EAS_DATA_HANDLE easHandle, EAS_U32 *pEventRaw, S_JET_EVENT *pEven… in JET_GetEvent() argument
582 gotEvent = JET_ReadQueue(easHandle->jetHandle->appEventQueue, in JET_GetEvent()
583 &easHandle->jetHandle->appEventQueueRead, in JET_GetEvent()
584 easHandle->jetHandle->appEventQueueWrite, in JET_GetEvent()
605 EAS_PUBLIC EAS_RESULT JET_QueueSegment (EAS_DATA_HANDLE easHandle, EAS_INT segmentNum, EAS_INT libN… in JET_QueueSegment() argument
614 if (segmentNum >= easHandle->jetHandle->numSegments) in JET_QueueSegment()
618 if (libNum >= easHandle->jetHandle->numLibraries) in JET_QueueSegment()
622 p = &easHandle->jetHandle->segQueue[easHandle->jetHandle->queueSegment]; in JET_QueueSegment()
635 …result = EAS_OpenJETStream(easHandle, easHandle->jetHandle->jetFileHandle, easHandle->jetHandle->s… in JET_QueueSegment()
641 if (++easHandle->jetHandle->numQueuedSegments < SEG_QUEUE_DEPTH) in JET_QueueSegment()
643 result = JET_PrepareSegment(easHandle, easHandle->jetHandle->queueSegment); in JET_QueueSegment()
649 … result = EAS_HWDupHandle(easHandle->hwInstData, easHandle->jetHandle->jetFileHandle, &fileHandle); in JET_QueueSegment()
653 easHandle->jetHandle->jetFileHandle = fileHandle; in JET_QueueSegment()
654easHandle->jetHandle->queueSegment = (EAS_U8) JET_NextSegment(easHandle->jetHandle->queueSegment); in JET_QueueSegment()
664 EAS_PUBLIC EAS_RESULT JET_Play (EAS_DATA_HANDLE easHandle) in JET_Play() argument
673 if (easHandle->jetHandle->flags & JET_FLAGS_PLAYING) in JET_Play()
679 …if (((index == easHandle->jetHandle->playSegment) && (easHandle->jetHandle->segQueue[index].state … in JET_Play()
680 (easHandle->jetHandle->segQueue[index].state == JET_STATE_PAUSED)) in JET_Play()
682 result = JET_StartPlayback(easHandle, index); in JET_Play()
693 easHandle->jetHandle->flags |= JET_FLAGS_PLAYING; in JET_Play()
703 EAS_PUBLIC EAS_RESULT JET_Pause (EAS_DATA_HANDLE easHandle) in JET_Pause() argument
712 if ((easHandle->jetHandle->flags & JET_FLAGS_PLAYING) == 0) in JET_Pause()
718 if (easHandle->jetHandle->segQueue[index].state == JET_STATE_PLAYING) in JET_Pause()
720 …result = EAS_Pause(easHandle, easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].st… in JET_Pause()
723easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].state = JET_STATE_PAUSED; in JET_Pause()
732 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Pause()
742 EAS_PUBLIC EAS_RESULT JET_SetMuteFlags (EAS_DATA_HANDLE easHandle, EAS_U32 muteFlags, EAS_BOOL sync) in JET_SetMuteFlags() argument
747 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlags()
755 …return EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) muteFl… in JET_SetMuteFlags()
778 EAS_PUBLIC EAS_RESULT JET_SetMuteFlag (EAS_DATA_HANDLE easHandle, EAS_INT trackNum, EAS_BOOL muteFl… in JET_SetMuteFlag() argument
790 pSeg = &easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment]; in JET_SetMuteFlag()
801 …return EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg->… in JET_SetMuteFlag()
832 EAS_PUBLIC EAS_RESULT JET_TriggerClip (EAS_DATA_HANDLE easHandle, EAS_INT clipID) in JET_TriggerClip() argument
847 if (easHandle->jetHandle->muteQueue[i] == clipID) in JET_TriggerClip()
852 if (easHandle->jetHandle->muteQueue[i] == 0) in JET_TriggerClip()
858 easHandle->jetHandle->muteQueue[index] = (EAS_U8) clipID | JET_CLIP_TRIGGER_FLAG; in JET_TriggerClip()
868 EAS_PUBLIC EAS_RESULT JET_Process (EAS_DATA_HANDLE easHandle) in JET_Process() argument
881 while (JET_ReadQueue(easHandle->jetHandle->jetEventQueue, in JET_Process()
882 &easHandle->jetHandle->jetEventQueueRead, in JET_Process()
883 easHandle->jetHandle->jetEventQueueWrite, in JET_Process()
895 … (easHandle->jetHandle->segQueue[easHandle->jetHandle->playSegment].streamHandle != NULL)) in JET_Process()
900 index = playIndex = easHandle->jetHandle->playSegment; in JET_Process()
903 pSeg = &easHandle->jetHandle->segQueue[index]; in JET_Process()
908 result = EAS_State(easHandle, pSeg->streamHandle, &state); in JET_Process()
923 result = EAS_Locate(easHandle, pSeg->streamHandle, 0, EAS_FALSE); in JET_Process()
932 …result = EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg… in JET_Process()
945 easHandle->jetHandle->playSegment = (EAS_U8) JET_NextSegment(index); in JET_Process()
954 result = JET_CloseSegment(easHandle, index); in JET_Process()
963 result = JET_StartPlayback(easHandle, index); in JET_Process()
974 result = JET_PrepareSegment(easHandle, index); in JET_Process()
997 if (easHandle->jetHandle->numQueuedSegments == 0) in JET_Process()
998 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Process()
1009 void JET_Event (EAS_DATA_HANDLE easHandle, EAS_U32 segTrack, EAS_U8 channel, EAS_U8 controller, EAS… in JET_Event() argument
1013 if (easHandle->jetHandle == NULL) in JET_Event()
1026 … if ((easHandle->jetHandle->muteQueue[i] & JET_CLIP_ID_MASK) == (value & JET_CLIP_ID_MASK)) in JET_Event()
1029 pSeg = &easHandle->jetHandle->segQueue[segTrack >> JET_EVENT_SEG_SHIFT]; in JET_Event()
1033 … if ((easHandle->jetHandle->muteQueue[i] & JET_CLIP_TRIGGER_FLAG) && ((value & 0x40) > 0)) in JET_Event()
1036 easHandle->jetHandle->muteQueue[i] &= ~JET_CLIP_TRIGGER_FLAG; in JET_Event()
1046 easHandle->jetHandle->muteQueue[i] = 0; in JET_Event()
1048 …EAS_IntSetStrmParam(easHandle, pSeg->streamHandle, PARSER_DATA_MUTE_FLAGS, (EAS_I32) pSeg->muteFla… in JET_Event()
1059 …if ((controller >= easHandle->jetHandle->config.appEventRangeLow) && (controller <= easHandle->jet… in JET_Event()
1062 …event |= easHandle->jetHandle->segQueue[(segTrack & JET_EVENT_SEG_MASK) >> JET_EVENT_SEG_SHIFT].us… in JET_Event()
1066 JET_WriteQueue(easHandle->jetHandle->appEventQueue, in JET_Event()
1067 &easHandle->jetHandle->appEventQueueWrite, in JET_Event()
1068 easHandle->jetHandle->appEventQueueRead, in JET_Event()
1080 JET_WriteQueue(easHandle->jetHandle->jetEventQueue, in JET_Event()
1081 &easHandle->jetHandle->jetEventQueueWrite, in JET_Event()
1082 easHandle->jetHandle->jetEventQueueRead, in JET_Event()
1094 EAS_RESULT JET_Clear_Queue(EAS_DATA_HANDLE easHandle) in JET_Clear_Queue() argument
1104 if (easHandle->jetHandle->segQueue[index].state == JET_STATE_PLAYING) in JET_Clear_Queue()
1106 result = EAS_Pause(easHandle, easHandle->jetHandle->segQueue[index].streamHandle); in JET_Clear_Queue()
1110 easHandle->jetHandle->segQueue[index].state = JET_STATE_PAUSED; in JET_Clear_Queue()
1117 if (easHandle->jetHandle->segQueue[index].streamHandle != NULL) in JET_Clear_Queue()
1119 result = JET_CloseSegment(easHandle, index); in JET_Clear_Queue()
1128 easHandle->jetHandle->muteQueue[index] = 0; in JET_Clear_Queue()
1131 easHandle->jetHandle->flags &= ~JET_FLAGS_PLAYING; in JET_Clear_Queue()
1132 easHandle->jetHandle->playSegment = easHandle->jetHandle->queueSegment = 0; in JET_Clear_Queue()