mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 10:59:48 +00:00
fix sound asset
This commit is contained in:
Binary file not shown.
@@ -40,7 +40,6 @@ RAY::Window::Window(int width, int height, std::string title, unsigned flags, bo
|
||||
{
|
||||
if (openNow)
|
||||
this->open();
|
||||
InitAudioDevice();
|
||||
}
|
||||
|
||||
bool RAY::Window::open(void)
|
||||
@@ -50,6 +49,7 @@ bool RAY::Window::open(void)
|
||||
}
|
||||
InitWindow(this->_dimensions.x, this->_dimensions.y, this->_title.c_str());
|
||||
this->_isOpen = true;
|
||||
InitAudioDevice();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ namespace BBM
|
||||
this->volume = 1;
|
||||
}
|
||||
|
||||
float MusicComponent::volume;
|
||||
|
||||
WAL::Component *MusicComponent::clone(WAL::Entity &entity) const
|
||||
{
|
||||
return new MusicComponent(entity, this->_musicPath);
|
||||
|
||||
@@ -25,6 +25,8 @@ const std::map<SoundComponent::soundIndex, std::string> &soundPath)
|
||||
}
|
||||
}
|
||||
|
||||
float SoundComponent::volume;
|
||||
|
||||
WAL::Component *SoundComponent::clone(WAL::Entity &entity) const
|
||||
{
|
||||
return new SoundComponent(entity, this->_soundPath);
|
||||
|
||||
Reference in New Issue
Block a user