示例#1
0
void cSoundStream::BindFile(const std::string &path, ALenum format)
{
    if(!IsValid())
        return;

    m_Format = format;

    DeleteChunks();

    if(OpenStream(path))
        CreateChunks();
};
void StoneBlock::DeadPhase()
{
	out("---> Death:%x damage:%f\n", this->name, this->damage);
	//SoundManager::Play("../../data/wood destroyed a1.wav");	

	this->deleteMe = true;
	this->pEmitter->SetCenter(b2Vec2((this->posX), (this->posY)));
	pBlockSound->Play(SoundType::DEATH);
	CreateChunks();
	// Add to death list
	GameObjectMan::AddToDeleteList(this);
}