Lines Matching defs:streamNum
281 EAS_INT streamNum;
295 for (streamNum = 0; streamNum < MAX_NUMBER_STREAMS; streamNum++)
296 if (pEASData->streams[streamNum].handle == NULL)
298 if (streamNum == MAX_NUMBER_STREAMS)
303 return streamNum;
568 EAS_INT streamNum;
571 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
591 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
592 *ppStream = &pEASData->streams[streamNum];
623 EAS_INT streamNum;
631 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
656 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
657 *ppStream = &pEASData->streams[streamNum];
696 EAS_INT streamNum;
713 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
728 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
729 *ppStream = &pEASData->streams[streamNum];
851 EAS_INT streamNum;
892 for (streamNum = 0; streamNum < MAX_NUMBER_STREAMS; streamNum++)
895 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_LOCATE;
897 if (pEASData->streams[streamNum].pParserModule)
901 pParserModule = pEASData->streams[streamNum].pParserModule;
904 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PAUSE)
907 result = pParserModule->pfPause(pEASData, pEASData->streams[streamNum].handle);
908 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PAUSE;
912 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
918 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_RESUME)
921 result = pParserModule->pfResume(pEASData, pEASData->streams[streamNum].handle);
922 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_RESUME;
927 if ((pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PARSED) == 0)
928 if ((result = EAS_ParseEvents(pEASData, &pEASData->streams[streamNum], pEASData->streams[streamNum].time + pEASData->streams[streamNum].frameLength, eParserModePlay)) != EAS_SUCCESS)
932 if ((pEASData->streams[streamNum].streamFlags) == 0)
945 if (pEASData->streams[streamNum].repeatCount)
949 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
955 if (pEASData->streams[streamNum].repeatCount > 0)
956 pEASData->streams[streamNum].repeatCount--;
959 if ((result = (*pParserModule->pfReset)(pEASData, pEASData->streams[streamNum].handle)) != EAS_SUCCESS)
961 pEASData->streams[streamNum].time = 0;
998 for (streamNum = 0; streamNum < MAX_NUMBER_STREAMS; streamNum++)
999 if (pEASData->streams[streamNum].pParserModule != NULL)
1000 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PARSED;
1490 EAS_INT streamNum;
1496 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
1514 EAS_InitStream(&pEASData->streams[streamNum], NULL, pMIDIStream);
1532 EAS_CloseMIDIStream(pEASData, &pEASData->streams[streamNum]);
1539 *ppStream = (EAS_HANDLE) &pEASData->streams[streamNum];