Skip to content

Commit 7581242

Browse files
committed
Update MCButtonChild.cpp
1 parent d152156 commit 7581242

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ui/nodes/MCButtonChild.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void MCButtonChild::doClick(){
144144

145145
if(this->isHovering || doAndroidBypass){
146146

147+
#ifndef GEODE_IS_ANDROID
147148
auto engine = FMODAudioEngine::sharedEngine();
148149
auto system = engine->m_system;
149150

@@ -156,6 +157,7 @@ void MCButtonChild::doClick(){
156157
system->playSound(sound, nullptr, false, &channel);
157158
channel->setVolume(engine->m_sfxVolume);
158159
}
160+
#endif
159161

160162
geode::Loader::get()->queueInMainThread([this]() { //delay it by a frame because for some reason it crashes the touch dispatcher otherwise ???
161163
if(m_pListener && m_pfnSelector){

0 commit comments

Comments
 (0)