mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-26 14:44:58 +00:00
feat: Implement gamepad support and audio control enhancements in input and audio services
This commit is contained in:
@@ -72,4 +72,21 @@ bool AudioCommandService::QueueAudioCommand(AudioCommandType type,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AudioCommandService::StopBackground(std::string& error) {
|
||||
if (logger_) {
|
||||
logger_->Trace("AudioCommandService", "StopBackground");
|
||||
}
|
||||
if (!audioService_) {
|
||||
error = "Audio service not available";
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
audioService_->StopBackground();
|
||||
} catch (const std::exception& ex) {
|
||||
error = ex.what();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace sdl3cpp::services::impl
|
||||
|
||||
Reference in New Issue
Block a user