fix sound asset

This commit is contained in:
arthur.jamet
2021-06-08 19:17:12 +02:00
parent 3b2eeba83f
commit 783704d11e
4 changed files with 5 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -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);