Esempio n. 1
0
static int wrap_setPosition(lua_State* L) {
  lua_settop(L, 2);
  OutputStream* self = luaAudiere_checkOutputStream(L, 1);
  requireSeekable(L, self);
  int position = luaL_checkint(L, 2);
  self->setPosition(position);
  return 0;
}
Esempio n. 2
0
void D3DCore_Impl::Channel_SetPos(HCHANNEL chn, float fSeconds)
{
	if(!m_pADevice) return;

	OutputStream* OStream = (OutputStream*)chn;
	for( Channel* I = channels; I != NULL; I = I->next )
	{
		if( I->Handler == chn )
		{			
			OStream->setPosition( int(fSeconds) );
			return ;
		}
	}

	//Recorrer los stream
	for( CStreamList* I = streams; I != NULL; I = I->next )
	{
		if( I->hstream == chn )
		{			
			OStream->setPosition( int(fSeconds) );
			return;
		}
	}
}