bool D3DCore_Impl::Channel_IsPlaying(HCHANNEL chn) { if(!m_pADevice) return false; OutputStream* OStream = (OutputStream*)chn; for( Channel* I = channels; I != NULL; I = I->next ) { if( I->Handler == chn ) { return OStream->isPlaying(); } } //Recorrer los stream for( CStreamList* I = streams; I != NULL; I = I->next ) { if( I->hstream == chn ) { return OStream->isPlaying(); } } return false; }
static int wrap_isPlaying(lua_State* L) { lua_settop(L, 1); OutputStream* self = luaAudiere_checkOutputStream(L, 1); lua_pushboolean(L, self->isPlaying()); return 1; }