Skip to content

AudioManager

Carenalga edited this page Feb 7, 2023 · 6 revisions

Description

Inherits Node.

This is the node in charge of playing sounds and music using AudioStreamPlayer and AudioStreamPlayer2D.

It is loaded as a child of Popochiu.tscn at run time.

Properties

Constants

  • AudioCue AudioCue. Default preload('AudioCue.gd'). Used to cast variables as AudioCue.

Private

  • _mx_cues Dictionary. Default {}. Stores all the AudioCues in the music category like a map: { 'cue_name': AudioCue }.
  • _sfx_cues Dictionary. Default {}. Stores all the AudioCues in the sound effects category like a map: { 'cue_name': AudioCue }.
  • _vo_cues Dictionary. Default {}. Stores all the AudioCues in the voices category like a map: { 'cue_name': AudioCue }.
  • _ui_cues Dictionary. Default {}. Stores all the AudioCues in the graphic interface category like a map: { 'cue_name': AudioCue }.
  • _active Dictionary. Default {}. Stores all the AudioCues that are currently active like a map: { 'cue_name': AudioCue }.
  • _all_in_one Dictionary. Default {}. Stores all the AudioCues available in the AudioManager like a map: { 'cue_name': AudioCue }.
  • _fading_sounds Dictionary. Default {}. Stores all the AudioCues that are fading like a map: { 'cue_name': AudioCue }. This is used when stopping sounds that are fading.

Methods

Public

  • method_name( param_type param_name ) return_type

    TODO.

Set and get

  • method_name( param_type param_name ) return_type

    TODO.

Private

  • _method_name( param_type param_name ) return_type

    TODO.

Clone this wiki locally