Beispiel #1
0
//
// GetTrackByte
//
// Retrieve the next byte from the track buffer, refilling the buffer from
// disk if necessary.
//
static BOOL GetTrackByte( PINTRACKSTATE ptsTrack, LPBYTE lpbyByte )
    {
    if( !ptsTrack->dwLeftInBuffer )
    {
    if( RefillTrackBuffer( ptsTrack ))
        return( TRUE );
    }

    *lpbyByte = *ptsTrack->pTrackCurrent++;
    ptsTrack->dwLeftInBuffer--;
    return( FALSE );
    }
Beispiel #2
0
/* GetTrackByte
 *
 * Retrieve the next byte from the track buffer, refilling the buffer
 * from disk if necessary.
 */
static int GetTrackByte (track_state_t *ts, BYTE *b)
{
	if (!ts->left_in_buffer)
	{
		if (RefillTrackBuffer(ts))
			return 1;
	}

	*b = *ts->current_ptr++;
	ts->left_in_buffer--;
	return 0;
}