Formatting codes with cocos2d-x code style in SimpleAudioEngineOpenAL.cpp.

This commit is contained in:
James Chen 2013-07-22 11:36:20 +08:00
parent ae015a71e1
commit 382fe1a54d
1 changed files with 519 additions and 517 deletions

View File

@ -21,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
****************************************************************************/ ****************************************************************************/
#include "SimpleAudioEngine.h"
#include <map> #include <map>
#include <string> #include <string>
@ -32,7 +33,6 @@ THE SOFTWARE.
#include <AL/alc.h> #include <AL/alc.h>
#include <AL/alut.h> #include <AL/alut.h>
#include "OpenALDecoder.h" #include "OpenALDecoder.h"
#include "SimpleAudioEngine.h"
#ifdef ENABLE_MPG123 #ifdef ENABLE_MPG123
#include <mpg123.h> #include <mpg123.h>
@ -42,8 +42,8 @@ USING_NS_CC;
using namespace std; using namespace std;
namespace CocosDenshion namespace CocosDenshion {
{
struct soundData { struct soundData {
ALuint buffer; ALuint buffer;
ALuint source; ALuint source;
@ -69,6 +69,7 @@ namespace CocosDenshion
ALuint buffer; ALuint buffer;
ALuint source; ALuint source;
}; };
typedef map<string, backgroundMusicData *> BackgroundMusicsMap; typedef map<string, backgroundMusicData *> BackgroundMusicsMap;
BackgroundMusicsMap s_backgroundMusics; BackgroundMusicsMap s_backgroundMusics;
@ -581,4 +582,5 @@ namespace CocosDenshion
checkALError("stopAllEffects:alSourceStop"); checkALError("stopAllEffects:alSourceStop");
} }
} }
}
} // namespace CocosDenshion {