Audio.h
Audio.cpp
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "SimpleAudioEngine.h"
if
(m_instance ==
){
}
return
m_instance;
}
Audio::playBGM(){
}
Audio::playReadyGo(){
}
Audio::playPop(){
"Music/pop.ogg"
);
}
(size < 5)
;
(size >= 10){
"Music/combo_3.ogg"
);
}
else
(size >= 7){
"Music/combo_2.ogg"
);
else
{
"Music/combo_1.ogg"
);
}
}
Audio::prepare(){
CocosDenshion::SimpleAudioEngine::getInstance()->preloadBackgroundMusic(
);
CocosDenshion::SimpleAudioEngine::getInstance()->preloadEffect(
);
);
);
);
);
}