Skip to content

Remove platform/audio #7774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025
Merged

Remove platform/audio #7774

merged 1 commit into from
Jun 16, 2025

Conversation

willeastcott
Copy link
Contributor

The Channel and Channel3d classes should have been removed along with AudioSourceComponent. This PR removes them and moves remaining code from platform/audio into platform/sound.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@willeastcott willeastcott self-assigned this Jun 16, 2025
@willeastcott willeastcott added area: sound Sound related issue enhancement labels Jun 16, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

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 removes the legacy Channel and Channel3d classes from platform/audio, migrates all remaining audio-related code into platform/sound, and updates imports and exports to reference the new sound location.

  • Deleted outdated channel classes and playback methods
  • Updated imports of constants and capabilities to platform/sound
  • Adjusted top-level exports and framework audio handlers to use sound paths

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/platform/sound/manager.js Removed Channel/Channel3d imports and deprecated playback methods
src/platform/sound/instance3d.js Switched constants and capabilities imports to ./
src/platform/sound/instance.js Switched capabilities import to ./
src/platform/audio/channel3d.js Removed outdated 3D channel implementation
src/platform/audio/channel.js Removed legacy channel implementation
src/index.js Replaced audio exports with platform/sound exports
src/framework/handlers/audio.js Updated hasAudioContext import to platform/sound
src/framework/components/sound/system.js Updated hasAudioContext import to platform/sound
src/framework/components/sound/component.js Updated DISTANCE_* import to platform/sound

@willeastcott willeastcott merged commit 866eca1 into main Jun 16, 2025
7 checks passed
@willeastcott willeastcott deleted the rm-channel branch June 16, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sound Sound related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants