plight/source/sound/sound_manager.cpp
void
    SoundManager::cleanUp()
    {
        for (auto const& rSourceData : m_sourceData)
        {
            alDeleteSources(1, &rSourceData.m_sourceId);
            printAlError();
            alDeleteBuffers(static_cast<ALsizei>(rSourceData.m_bufferIds.size()), rSourceData.m_bufferIds.data());
            printAlError();
        }
        m_sourceData.clear();
        m_soundMap.clear();
    }
/*
        Delete all sources and buffers, clear sound and source data
    */
Delete all sources and buffers, clear sound and source data
Delete all sources and buffers clear sound and source data
void
    SoundManager::cleanUp()
    {
        for (auto const& rSourceData : m_sourceData)
        {
            alDeleteSources(1, &rSourceData.m_sourceId);
            printAlError();
            alDeleteBuffers(static_cast<ALsizei>(rSourceData.m_bufferIds.size()), rSourceData.m_bufferIds.data());
            printAlError();
        }
        m_sourceData.clear();
        m_soundMap.clear();
    }
void SoundManager :: cleanUp ( ) { for ( auto const & rSourceData : m_sourceData ) { alDeleteSources ( 1 , & rSourceData . m_sourceId ) ; printAlError ( ) ; alDeleteBuffers ( static_cast < ALsizei > ( rSourceData . m_bufferIds . size ( ) ) , rSourceData . m_bufferIds . data ( ) ) ; printAlError ( ) ; } m_sourceData . clear ( ) ; m_soundMap . clear ( ) ; }
Delete all sources and buffers, clear sound and source data
Delete all sources and buffers clear sound and source data