Skip to content

Audio Swapping

SteventheBeven edited this page Jul 16, 2026 · 1 revision

System Summary

Descriptive summary of what the system is and what it does.

A script that handles the audio related aspects of the asset manager.


Connected Systems

List of connecting/parent/subsystems.

Connecting Systems:


Bugs

List of known bugs. Be descriptive but keep it brief!

  • None

Feature List / Breakdown of Features

List of features and descriptions within system.

Audio Loading:

  • Users can load an audio file from their file system
  • This loaded audio file gets copied to their project's file system
  • This loaded audio file gets used whenever the audio should be played

Audio Previewing:

  • A user can preview the audio asset by playing and pausing it, and scrolling through it.

Important Variables

Name the most important variables, their type, and what their purpose is

  • audioTypes : Array[String] = An array of the names of all of the audio assets within the project.
  • previewAudioPlayer : AudioStreamPlayer = The player that plays the audio for previewing within the Asset Manager

Important Functions

Name of the most important functions, their parameters, and what they do.

  • func load_preview_audio() -> void: Loads the preview audio to have the file currently in the selected audio folder
  • func replace_audio(newAudioPath : String) -> void: Removes the currently loaded audio asset and copies the file from the newAudioPath to the user folders
  • func reset_audio() -> void: Removes the currently loaded audio asset, reverting to default

Future Work / Risks

List and description of upcoming work/risks.

Future Work:

  • N/A

Risks:

  • N/A

Miscellaneous Notes

A place for miscellaneous notes pertaining to this system.

  • N/A

Clone this wiki locally