Skip to content

Conversation

minggo
Copy link
Contributor

@minggo minggo commented Jul 19, 2019

  • refactor AudioEngine and AudioEngine-linux

  • map::erase() can handle case if key doesn't exist.

  • use map::iterator when it has already obtained.

  • mapChannelInfo[id].channel is nullptr befor resume(). Don't
    dereference it.

  • FMOD::System::release() calls close, so calling close before release
    is not necessary.

  • use std::map::insert properly.

  • remove unnecessary null check on _audioEngineImpl

  • add comment on nullptr dereference

* refactor AudioEngine and AudioEngine-linux

* map::erase() can handle case if key doesn't exist.

* use map::iterator when it has already obtained.

* mapChannelInfo[id].channel is nullptr befor resume(). Don't
dereference it.

* FMOD::System::release() calls close, so calling close before release
is not necessary.

* use std::map::insert properly.

* remove unnecessary null check on _audioEngineImpl

* add comment on nullptr dereference
@minggo minggo added this to the 4.0 milestone Jul 19, 2019
@minggo minggo merged commit 3e6b1ff into cocos2d:v4 Jul 22, 2019
@minggo minggo deleted the sync-19822 branch July 22, 2019 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants