Skip to content

Add audio support option to SoundManager::RefershBGMDir#2838

Merged
salix5 merged 1 commit into
Fluorohydride:masterfrom
salix5:patch50
Jun 12, 2025
Merged

Add audio support option to SoundManager::RefershBGMDir#2838
salix5 merged 1 commit into
Fluorohydride:masterfrom
salix5:patch50

Conversation

@salix5

@salix5 salix5 commented Jun 12, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@salix5 salix5 requested a review from Copilot June 12, 2025 11:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds conditional audio support to the SoundManager's BGM directory refresh function by wrapping the code with the YGOPRO_USE_AUDIO preprocessor directives.

  • Introduces conditional compilation in SoundManager::RefershBGMDir to include audio functionalities.
  • Limits audio-related operations to builds with YGOPRO_USE_AUDIO defined.
Comments suppressed due to low confidence (2)

gframe/sound_manager.cpp:71

  • Consider adding a comment explaining the purpose of the conditional compilation block for audio support to improve clarity for future maintainers.
#ifdef YGOPRO_USE_AUDIO

gframe/sound_manager.cpp:85

  • [nitpick] It may be beneficial to document or implement a fallback behavior when YGOPRO_USE_AUDIO is not defined, ensuring that the absence of audio support is intentional and clear.
#endif // YGOPRO_USE_AUDIO

@salix5 salix5 merged commit c421224 into Fluorohydride:master Jun 12, 2025
8 checks passed
@salix5 salix5 deleted the patch50 branch June 12, 2025 11:10
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