Lines Matching refs:result
116 EAS_RESULT result; in XMF_CheckFileType() local
123 … if ((result = EAS_HWGetDWord(pEASData->hwInstData, fileHandle, &temp, EAS_TRUE)) != EAS_SUCCESS) in XMF_CheckFileType()
124 return result; in XMF_CheckFileType()
129 … if ((result = EAS_HWGetDWord(pEASData->hwInstData, fileHandle, &temp, EAS_TRUE)) != EAS_SUCCESS) in XMF_CheckFileType()
130 return result; in XMF_CheckFileType()
135 result = EAS_HWGetDWord(pEASData->hwInstData, fileHandle, &temp, EAS_TRUE); in XMF_CheckFileType()
136 if (result != EAS_SUCCESS) in XMF_CheckFileType()
137 return result; in XMF_CheckFileType()
147 result = EAS_HWGetDWord(pEASData->hwInstData, fileHandle, &temp, EAS_TRUE); in XMF_CheckFileType()
148 if (result != EAS_SUCCESS) in XMF_CheckFileType()
149 return result; in XMF_CheckFileType()
180 if ((result = XMF_FindFileContents(pEASData->hwInstData, pXMFData)) != EAS_SUCCESS) in XMF_CheckFileType()
183 return result; in XMF_CheckFileType()
187 …if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, pXMFData->midiOffset)) != EAS_SUCCE… in XMF_CheckFileType()
188 return result; in XMF_CheckFileType()
213 EAS_RESULT result; in XMF_Prepare() local
219 …if ((result = DLSParser(pEASData->hwInstData, pXMFData->fileHandle, pXMFData->dlsOffset, &pXMFData… in XMF_Prepare()
222 return result; in XMF_Prepare()
227 if ((result = SMF_Prepare(pEASData, pXMFData->pSMFData)) != EAS_SUCCESS) in XMF_Prepare()
228 return result; in XMF_Prepare()
235 result = VMSetDLSLib(((S_SMF_DATA*) pXMFData->pSMFData)->pSynth, pXMFData->pDLS); in XMF_Prepare()
236 if (result == EAS_SUCCESS) in XMF_Prepare()
241 return result; in XMF_Prepare()
332 EAS_RESULT result; in XMF_Close() local
337 if ((result = SMF_Close(pEASData, pXMFData->pSMFData)) != EAS_SUCCESS) in XMF_Close()
338 return result; in XMF_Close()
462 EAS_RESULT result; in XMF_GetData() local
465 …if ((result = SMF_GetData(pEASData, ((S_XMF_DATA*) pInstData)->pSMFData, param, pValue)) != EAS_SU… in XMF_GetData()
466 return result; in XMF_GetData()
502 EAS_RESULT result; in XMF_FindFileContents() local
510 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &value)) != EAS_SUCCESS) in XMF_FindFileContents()
511 return result; in XMF_FindFileContents()
514 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &value)) != EAS_SUCCESS) in XMF_FindFileContents()
515 return result; in XMF_FindFileContents()
516 if ((result = EAS_HWFileSeekOfs(hwInstData, pXMFData->fileHandle, value)) != EAS_SUCCESS) in XMF_FindFileContents()
517 return result; in XMF_FindFileContents()
520 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &value)) != EAS_SUCCESS) in XMF_FindFileContents()
521 return result; in XMF_FindFileContents()
522 if ((result = XMF_ReadNode(hwInstData, pXMFData, value, &length)) != EAS_SUCCESS) in XMF_FindFileContents()
523 return result; in XMF_FindFileContents()
555 EAS_RESULT result; in XMF_ReadNode() local
564 if ((result = EAS_HWFileSeek(hwInstData, pXMFData->fileHandle, nodeOffset)) != EAS_SUCCESS) in XMF_ReadNode()
565 return result; in XMF_ReadNode()
568 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, pLength)) != EAS_SUCCESS) in XMF_ReadNode()
569 return result; in XMF_ReadNode()
572 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &numItems)) != EAS_SUCCESS) in XMF_ReadNode()
573 return result; in XMF_ReadNode()
576 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &headerLength)) != EAS_SUCCESS) in XMF_ReadNode()
577 return result; in XMF_ReadNode()
580 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &length)) != EAS_SUCCESS) in XMF_ReadNode()
581 return result; in XMF_ReadNode()
584 if ((result = EAS_HWFilePos(hwInstData, pXMFData->fileHandle, &offset)) != EAS_SUCCESS) in XMF_ReadNode()
585 return result; in XMF_ReadNode()
591 …if ((result = EAS_HWFileSeek(hwInstData, pXMFData->fileHandle, nodeOffset + headerLength)) != EAS_… in XMF_ReadNode()
592 return result; in XMF_ReadNode()
595 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &refType)) != EAS_SUCCESS) in XMF_ReadNode()
596 return result; in XMF_ReadNode()
599 if ((result = EAS_HWFilePos(hwInstData, pXMFData->fileHandle, &offset)) != EAS_SUCCESS) in XMF_ReadNode()
600 return result; in XMF_ReadNode()
609 if ((result = XMF_ReadVLQ(hwInstData, pXMFData->fileHandle, &offset)) != EAS_SUCCESS) in XMF_ReadNode()
610 return result; in XMF_ReadNode()
612 if ((result = EAS_HWFileSeek(hwInstData, pXMFData->fileHandle, offset)) != EAS_SUCCESS) in XMF_ReadNode()
613 return result; in XMF_ReadNode()
624 …if ((result = EAS_HWGetDWord(hwInstData, pXMFData->fileHandle, &chunkType, EAS_TRUE)) != EAS_SUCCE… in XMF_ReadNode()
625 return result; in XMF_ReadNode()
631 …if ((result = EAS_HWFileSeekOfs(hwInstData, pXMFData->fileHandle, sizeof(EAS_I32))) != EAS_SUCCESS) in XMF_ReadNode()
632 return result; in XMF_ReadNode()
635 …if ((result = EAS_HWGetDWord(hwInstData, pXMFData->fileHandle, &chunkType, EAS_TRUE)) != EAS_SUCCE… in XMF_ReadNode()
636 return result; in XMF_ReadNode()
652 if ((result = XMF_ReadNode(hwInstData, pXMFData, offset, &length)) != EAS_SUCCESS) in XMF_ReadNode()
653 return result; in XMF_ReadNode()
657 if ((result = EAS_HWFileSeek(hwInstData, pXMFData->fileHandle, offset)) != EAS_SUCCESS) in XMF_ReadNode()
658 return result; in XMF_ReadNode()
688 EAS_RESULT result;
700 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
701 return result;
704 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
705 return result;
706 if ((result = EAS_HWFileSeekOfs(pEASData, fileHandle, value)) != EAS_SUCCESS)
707 return result;
710 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &offset)) != EAS_SUCCESS)
711 return result;
712 if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, offset)) != EAS_SUCCESS)
713 return result;
716 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
717 return result;
720 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &numItems)) != EAS_SUCCESS)
721 return result;
724 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
725 return result;
728 if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, offset + value)) != EAS_SUCCESS)
729 return result;
732 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
733 return result;
746 if ((result = EAS_HWFilePos(pEASData->hwInstData, fileHandle, &offset)) != EAS_SUCCESS)
747 return result;
750 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &length)) != EAS_SUCCESS)
751 return result;
754 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
755 return result;
765 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
766 return result;
767 … if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, offset + value)) != EAS_SUCCESS)
768 return result;
771 if ((result = XMF_ReadVLQ(pEASData, fileHandle, &value)) != EAS_SUCCESS)
772 return result;
782 if ((result = EAS_HWFilePos(pEASData->hwInstData, fileHandle, &location)) != EAS_SUCCESS)
783 return result;
786 …if ((result = EAS_HWReadFile(pEASData->hwInstData, fileHandle, id, sizeof(id), &value)) != EAS_SUC…
787 return result;
812 … if ((result = EAS_HWFileSeek(pEASData->hwInstData, fileHandle, offset + length)) != EAS_SUCCESS)
813 return result;
842 EAS_RESULT result; in XMF_ReadVLQ() local
847 if ((result = EAS_HWGetByte(hwInstData, fileHandle, &c)) != EAS_SUCCESS) in XMF_ReadVLQ()
848 return result; in XMF_ReadVLQ()
855 if ((result = EAS_HWGetByte(hwInstData, fileHandle, &c)) != EAS_SUCCESS) in XMF_ReadVLQ()
856 return result; in XMF_ReadVLQ()