void CAudioManager::SetStreamPositionBytes(int id, unsigned int position){
  if(m_bValidAudio == false)
    return;

  for(int i = 0; i < m_Stream.size(); i++){
    if(m_Stream[i].AudioID == id){
      FSOUND_Stream_SetPosition(m_Stream[i].handle, position);
    }
  }
}
Пример #2
0
/**	Sets the play position of the stream
 *
 *	@param position	The position to set the stream to start at in BYTES
 *
 *	@returns	boolean true or false, depending on whether it was set successfully or not
 */
bool FMODStreamBuffer::SetPosition(int position)
{
	if(FSOUND_Stream_SetPosition(m_stream,position) == 1) return true;

	return false;
}
Пример #3
0
bool FMODStreamOut::SetSamplePos( int64_t samplepos)
{
    return StreamPointer && FSOUND_Stream_SetPosition(StreamPointer,(unsigned int)samplepos);
}