mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Put the internal sound definitions into a new sound
namespace
This commit is contained in:
parent
bbc64a2eb5
commit
c90c545d33
18 changed files with 70 additions and 4 deletions
|
@ -24,6 +24,8 @@ with this program; ifnot, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "sound_singleton.h"
|
||||
|
||||
namespace sound {
|
||||
|
||||
bool SoundManagerSingleton::init()
|
||||
{
|
||||
if (!(m_device = unique_ptr_alcdevice(alcOpenDevice(nullptr)))) {
|
||||
|
@ -67,3 +69,5 @@ SoundManagerSingleton::~SoundManagerSingleton()
|
|||
{
|
||||
infostream << "Audio: Global Deinitialized." << std::endl;
|
||||
}
|
||||
|
||||
} // namespace sound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue