Create AudioSource and AudioListener components #43

Open
opened 2025-12-17 02:48:37 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 02:48:37 +00:00 (Migrated from github.com)

Description

Define the ECS component API for audio sources and listeners. These components will be attached to entities to enable spatial audio.

Acceptance Criteria

Scenario: Components are defined
  Given the audio module
  When AudioSource and AudioListener components are created
  Then they should derive necessary Bevy traits
  And they should have clear, documented APIs
  And they should support spatial configuration

Technical Notes

  • Define AudioSource component with sample, bus, gain, looping, spatial config
  • Define AudioListener component (marker)
  • Derive Component, Reflect traits
  • Document component fields and usage
  • Define SpatialConfig struct with distance, falloff, occlusion settings
## Description Define the ECS component API for audio sources and listeners. These components will be attached to entities to enable spatial audio. ## Acceptance Criteria ```gherkin Scenario: Components are defined Given the audio module When AudioSource and AudioListener components are created Then they should derive necessary Bevy traits And they should have clear, documented APIs And they should support spatial configuration ``` ## Technical Notes - Define `AudioSource` component with sample, bus, gain, looping, spatial config - Define `AudioListener` component (marker) - Derive `Component`, `Reflect` traits - Document component fields and usage - Define `SpatialConfig` struct with distance, falloff, occlusion settings
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#43