Lines Matching refs:StreamInfo
120 static AudioStreamInfo StreamInfo; variable
894 if (StreamInfo.top != StreamInfo.bottom) in THPPlayerSkip()
896 StreamInfo.curSampleNum = StreamInfo.boundary[StreamInfo.top]; in THPPlayerSkip()
897 StreamInfo.top++; in THPPlayerSkip()
898 if (StreamInfo.top >= BOUNDARY_NUM) in THPPlayerSkip()
900 StreamInfo.top = 0; in THPPlayerSkip()
908 StreamInfo.curSampleNum = StreamInfo.endSampleNum; in THPPlayerSkip()
1589 StreamInfo.top = 0; in StreamInit()
1590 StreamInfo.bottom = 0; in StreamInit()
1591 StreamInfo.curSampleNum = 0; in StreamInit()
1592 StreamInfo.endSampleNum = 0; in StreamInit()
1607 StreamInfo.lastPos = OSCachedToPhysical(StreamBufferL) / 2; in StreamInit()
1634 if (StreamInfo.curSampleNum == StreamInfo.endSampleNum) in StreamReInit()
1638 StreamInfo.endSampleNum = 0; in StreamReInit()
1652 offset1 = (u32)(StreamInfo.curSampleNum % bufferSampleNum); in StreamReInit()
1653 offset2 = (u32)(StreamInfo.endSampleNum % bufferSampleNum); in StreamReInit()
1683 index = StreamInfo.top; in StreamReInit()
1685 while (index != StreamInfo.bottom) in StreamReInit()
1687 tmp = StreamInfo.boundary[index] % bufferSampleNum; in StreamReInit()
1689 StreamInfo.boundary[index] = tmp - offset1; in StreamReInit()
1700 StreamInfo.endSampleNum = bufferSampleNum - sample; in StreamReInit()
1748 index = StreamInfo.top; in StreamReInit()
1750 while (index != StreamInfo.bottom) in StreamReInit()
1752 tmp = StreamInfo.boundary[index] % bufferSampleNum; in StreamReInit()
1756 StreamInfo.boundary[index] = tmp - offset1; in StreamReInit()
1760 StreamInfo.boundary[index] = tmp + (bufferSampleNum - offset1); in StreamReInit()
1773 StreamInfo.endSampleNum = bufferSampleNum - sample; in StreamReInit()
1789 StreamInfo.curSampleNum = 0; in StreamReInit()
1801 StreamInfo.lastPos = OSCachedToPhysical(StreamBufferL) / 2; in StreamReInit()
1818 StreamInfo.boundary[StreamInfo.bottom] = boundarySampleNum; in EntryBoundary()
1819 StreamInfo.bottom++; in EntryBoundary()
1820 if (StreamInfo.bottom >= BOUNDARY_NUM) in EntryBoundary()
1822 StreamInfo.bottom = 0; in EntryBoundary()
1842 while (StreamInfo.top != StreamInfo.bottom) in CheckBoundary()
1844 if (StreamInfo.boundary[StreamInfo.top] <= curSampleNum) in CheckBoundary()
1846 StreamInfo.top++; in CheckBoundary()
1847 if (StreamInfo.top >= BOUNDARY_NUM) in CheckBoundary()
1849 StreamInfo.top = 0; in CheckBoundary()
1974 tmp = StreamInfo.endSampleNum; in FillStreamBuffer()
2011 StreamInfo.endSampleNum += sample; in FillStreamBuffer()
2040 if (currentPosition >= StreamInfo.lastPos) in THPPlayerStreamUpdate()
2042 diff = currentPosition - StreamInfo.lastPos; in THPPlayerStreamUpdate()
2052 diff = endAddr - StreamInfo.lastPos; in THPPlayerStreamUpdate()
2056 StreamInfo.curSampleNum += diff; in THPPlayerStreamUpdate()
2059 CheckBoundary(StreamInfo.curSampleNum); in THPPlayerStreamUpdate()
2064 if (currentPosition < StreamInfo.lastPos) in THPPlayerStreamUpdate()
2069 if ((currentPosition >= halfPosition) && (StreamInfo.lastPos < halfPosition)) in THPPlayerStreamUpdate()
2074 StreamInfo.lastPos = currentPosition; in THPPlayerStreamUpdate()