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;
569 EAS_INT streamNum;
572 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
592 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
593 *ppStream = &pEASData->streams[streamNum];
624 EAS_INT streamNum;
632 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
657 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
658 *ppStream = &pEASData->streams[streamNum];
697 EAS_INT streamNum;
714 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
729 EAS_InitStream(&pEASData->streams[streamNum], pParserModule, streamHandle);
730 *ppStream = &pEASData->streams[streamNum];
852 EAS_INT streamNum;
893 for (streamNum = 0; streamNum < MAX_NUMBER_STREAMS; streamNum++)
896 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_LOCATE;
898 if (pEASData->streams[streamNum].pParserModule)
902 pParserModule = pEASData->streams[streamNum].pParserModule;
905 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PAUSE)
908 result = pParserModule->pfPause(pEASData, pEASData->streams[streamNum].handle);
909 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PAUSE;
913 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
919 if (pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_RESUME)
922 result = pParserModule->pfResume(pEASData, pEASData->streams[streamNum].handle);
923 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_RESUME;
928 if ((pEASData->streams[streamNum].streamFlags & STREAM_FLAGS_PARSED) == 0)
929 if ((result = EAS_ParseEvents(pEASData, &pEASData->streams[streamNum], pEASData->streams[streamNum].time + pEASData->streams[streamNum].frameLength, eParserModePlay)) != EAS_SUCCESS)
933 if ((pEASData->streams[streamNum].streamFlags) == 0)
946 if (pEASData->streams[streamNum].repeatCount)
950 if ((result = (*pParserModule->pfState)(pEASData, pEASData->streams[streamNum].handle, &parserState)) != EAS_SUCCESS)
956 if (pEASData->streams[streamNum].repeatCount > 0)
957 pEASData->streams[streamNum].repeatCount--;
960 if ((result = (*pParserModule->pfReset)(pEASData, pEASData->streams[streamNum].handle)) != EAS_SUCCESS)
962 pEASData->streams[streamNum].time = 0;
999 for (streamNum = 0; streamNum < MAX_NUMBER_STREAMS; streamNum++)
1000 if (pEASData->streams[streamNum].pParserModule != NULL)
1001 pEASData->streams[streamNum].streamFlags &= ~STREAM_FLAGS_PARSED;
1491 EAS_INT streamNum;
1497 if ((streamNum = EAS_AllocateStream(pEASData)) < 0)
1515 EAS_InitStream(&pEASData->streams[streamNum], NULL, pMIDIStream);
1533 EAS_CloseMIDIStream(pEASData, &pEASData->streams[streamNum]);
1540 *ppStream = (EAS_HANDLE) &pEASData->streams[streamNum];