Lines Matching refs:EAS_I32
227 EAS_I32 gain;
398 static const EAS_I32 dlsRateConvert = DLS_RATE_CONVERT;
399 static const EAS_I32 dlsLFOFrequencyConvert = DLS_LFO_FREQUENCY_CONVERT;
405 EAS_INLINE void *PtrOfs (void *p, EAS_I32 offset)
414 static EAS_RESULT NextChunk (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 *pPos, EAS_U32 *pChunkType, EAS_I32 *pSize);
415 static EAS_RESULT Parse_ptbl (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 wsmpPos, EAS_I32 wsmpSize);
416 static EAS_RESULT Parse_wave (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U16 waveIndex);
417 EAS_I32 pos, S_WSMP_DATA *p);
418 static EAS_RESULT Parse_fmt (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_WSMP_DATA *p);
419 static EAS_RESULT Parse_data (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, S_WSMP_DATA *p, EAS_SAMPLE *pSample, EAS_U32 sampleLen);
420 static EAS_RESULT Parse_lins(SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size);
421 static EAS_RESULT Parse_ins (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size);
422 static EAS_RESULT Parse_insh (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U32 *pRgnCount, EAS_U32 *pLocale);
423 static EAS_RESULT Parse_lrgn (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, EAS_U16 artIndex, EAS_U32 numRegions);
424 static EAS_RESULT Parse_rgn (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, EAS_U16 artIndex);
425 static EAS_RESULT Parse_rgnh (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_DLS_REGION *pRgn);
426 static EAS_RESULT Parse_lart (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, S_DLS_ART_VALUES *pArt);
427 static EAS_RESULT Parse_art (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_DLS_ART_VALUES *pArt);
428 static EAS_RESULT Parse_wlnk (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U32 *pWaveIndex);
429 static EAS_RESULT Parse_cdl (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 size, EAS_U32 *pValue);
433 static EAS_I16 ConvertSustain (EAS_I32 sustain);
434 static EAS_I16 ConvertLFOPhaseIncrement (EAS_I32 pitchCents);
435 static EAS_I8 ConvertPan (EAS_I32 pan);
436 static EAS_U8 ConvertQ (EAS_I32 q);
459 EAS_RESULT DLSParser (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE fileHandle, EAS_I32 offset, EAS_DLSLIB_HANDLE *ppDLS)
464 EAS_I32 pos;
465 EAS_I32 chunkPos;
466 EAS_I32 size;
467 EAS_I32 instSize;
468 EAS_I32 rgnPoolSize;
469 EAS_I32 artPoolSize;
470 EAS_I32 waveLenSize;
471 EAS_I32 endDLS;
472 EAS_I32 wvplPos;
473 EAS_I32 wvplSize;
474 EAS_I32 linsPos;
475 EAS_I32 linsSize;
476 EAS_I32 ptblPos;
477 EAS_I32 ptblSize;
586 dls.wsmpData = EAS_HWMalloc(dls.hwInstData, (EAS_I32) (sizeof(S_WSMP_DATA) * dls.waveCount));
592 EAS_HWMemSet(dls.wsmpData, 0, (EAS_I32) (sizeof(S_WSMP_DATA) * dls.waveCount));
622 instSize = (EAS_I32) (sizeof(S_PROGRAM) * dls.instCount);
625 rgnPoolSize = (EAS_I32) (sizeof(S_DLS_REGION) * dls.regionCount);
629 artPoolSize = (EAS_I32) (sizeof(S_DLS_ARTICULATION) * dls.artCount);
632 waveLenSize = (EAS_I32) (dls.waveCount * sizeof(EAS_U32));
635 size = (EAS_I32) sizeof(S_EAS) + instSize + rgnPoolSize + artPoolSize + (2 * waveLenSize) + (EAS_I32) dls.wavePoolSize;
770 static EAS_RESULT NextChunk (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 *pPos, EAS_U32 *pChunkType, EAS_I32 *pSize)
820 static EAS_RESULT Parse_ptbl (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 wtblPos, EAS_I32 wtblSize)
864 if ((result = Parse_wave(pDLSData, wtblPos +(EAS_I32) temp, waveIndex)) != EAS_SUCCESS)
887 static EAS_RESULT Parse_wave (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U16 waveIndex)
891 EAS_I32 size;
892 EAS_I32 endChunk;
893 EAS_I32 chunkPos;
894 EAS_I32 wsmpPos = 0;
895 EAS_I32 fmtPos = 0;
896 EAS_I32 dataPos = 0;
897 EAS_I32 dataSize = 0;
1066 static EAS_RESULT Parse_wsmp (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_WSMP_DATA *p)
1121 if ((result = EAS_HWFileSeek(pDLSData->hwInstData, pDLSData->fileHandle, pos + (EAS_I32) cbSize)) != EAS_SUCCESS)
1166 static EAS_RESULT Parse_fmt (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_WSMP_DATA *p)
1238 static EAS_RESULT Parse_data (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, S_WSMP_DATA *pWsmp, EAS_SAMPLE *pSample, EAS_U32 sampleLen)
1242 EAS_I32 count;
1243 EAS_I32 i;
1325 static EAS_RESULT Parse_lins (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size)
1329 EAS_I32 endChunk;
1330 EAS_I32 chunkPos;
1371 static EAS_RESULT Parse_ins (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size)
1375 EAS_I32 chunkPos;
1376 EAS_I32 endChunk;
1377 EAS_I32 lrgnPos;
1378 EAS_I32 lrgnSize;
1379 EAS_I32 lartPos;
1380 EAS_I32 lartSize;
1381 EAS_I32 lar2Pos;
1382 EAS_I32 lar2Size;
1383 EAS_I32 inshPos;
1506 static EAS_RESULT Parse_insh (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U32 *pRgnCount, EAS_U32 *pLocale)
1555 static EAS_RESULT Parse_lrgn (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, EAS_U16 artIndex, EAS_U32 numRegions)
1559 EAS_I32 chunkPos;
1560 EAS_I32 endChunk;
1612 static EAS_RESULT Parse_rgn (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, EAS_U16 artIndex)
1616 EAS_I32 chunkPos;
1617 EAS_I32 endChunk;
1618 EAS_I32 rgnhPos;
1619 EAS_I32 lartPos;
1620 EAS_I32 lartSize;
1621 EAS_I32 lar2Pos;
1622 EAS_I32 lar2Size;
1623 EAS_I32 wlnkPos;
1624 EAS_I32 wsmpPos;
1787 static EAS_RESULT Parse_rgnh (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_DLS_REGION *pRgn)
1873 static EAS_RESULT Parse_lart (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_I32 size, S_DLS_ART_VALUES *pArt)
1877 EAS_I32 endChunk;
1878 EAS_I32 chunkPos;
1879 EAS_I32 art1Pos;
1880 EAS_I32 art2Pos;
1954 static EAS_RESULT Parse_art (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, S_DLS_ART_VALUES *pArt)
1963 EAS_I32 scale;
1973 pos += (EAS_I32) structSize;
2032 static EAS_RESULT Parse_wlnk (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 pos, EAS_U32 *pWaveIndex)
2183 EAS_I32 n;
2208 static EAS_RESULT Parse_cdl (SDLS_SYNTHESIZER_DATA *pDLSData, EAS_I32 size, EAS_U32 *pValue)
2474 static EAS_I16 ConvertSustain (EAS_I32 sustain)
2496 EAS_I16 ConvertDelay (EAS_I32 timeCents)
2498 EAS_I32 temp;
2523 EAS_I16 ConvertRate (EAS_I32 timeCents)
2525 EAS_I32 temp;
2561 static EAS_I16 ConvertLFOPhaseIncrement (EAS_I32 pitchCents)
2589 static EAS_I8 ConvertPan (EAS_I32 pan)
2608 static EAS_U8 ConvertQ (EAS_I32 q)