You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

audio.py 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. # Copyright (c) 2017 Anki, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License in the file LICENSE.txt or at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. '''
  15. Audio related classes, functions, events and values.
  16. '''
  17. # __all__ should order by constants, event classes, other classes, functions.
  18. __all__ = ['AudioEvents']
  19. import collections
  20. from . import logger
  21. from . import action
  22. from . import exceptions
  23. from . import event
  24. from ._clad import _clad_to_engine_iface, _clad_to_engine_cozmo, _clad_to_engine_anki, CladEnumWrapper
  25. # generate names for each CLAD defined trigger
  26. class _AudioEvent(collections.namedtuple('_AudioEvent', 'name id')):
  27. # Tuple mapping between CLAD AudioEvents name and ID
  28. # All instances will be members of AudioEvents
  29. # Keep _AudioEvent as lightweight as a normal namedtuple
  30. __slots__ = ()
  31. def __str__(self):
  32. return 'AudioEvents.%s' % self.name
  33. class AudioEvents(CladEnumWrapper):
  34. """The possible values for an AudioEvent.
  35. Pass one of these event objects to robot.play_audio() to play the corresponding sound clip.
  36. Example: ``robot.play_audio(cozmo.audio.AudioEvents.MusicFunLoop)``
  37. """
  38. _clad_enum = _clad_to_engine_anki.AudioMetaData.GameEvent.Codelab
  39. _entry_type = _AudioEvent
  40. #: Reserved Id for invalid sound events
  41. Invalid = _entry_type("Invalid", _clad_enum.Invalid)
  42. #: Stop all playing music
  43. MusicGlobalStop = _entry_type("MusicGlobalStop", _clad_enum.Music_Global_Stop)
  44. #: Mute cozmo background music
  45. MusicBackgroundSilenceOn = _entry_type("MusicBackgroundSilenceOn", _clad_enum.Music_Background_Silence_On)
  46. #: Unmute cozmo background music
  47. MusicBackgroundSilenceOff = _entry_type("MusicBackgroundSilenceOff", _clad_enum.Music_Background_Silence_Off)
  48. #: Initialize the synchronized tiny orchestra system
  49. #: (Will not produce any sound on its own, one of the modes must be triggered)
  50. MusicTinyOrchestraInit = _entry_type("MusicTinyOrchestraInit", _clad_enum.Music_Tiny_Orchestra_Init)
  51. #: Turn off the synchronized tiny orchestra system
  52. MusicTinyOrchestraStop = _entry_type("MusicTinyOrchestraStop", _clad_enum.Music_Tiny_Orchestra_Stop)
  53. #: Turn on the first mode of the synchronized tiny orchestra bass channel
  54. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  55. MusicTinyOrchestraBassMode1 = _entry_type("MusicTinyOrchestraBassMode1", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_1)
  56. #: Turn off the first mode of the synchronized tiny orchestra bass channel
  57. MusicTinyOrchestraBassMode1Stop = _entry_type("MusicTinyOrchestraBassMode1Stop", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_1_Stop)
  58. #: Turn on the second mode of the synchronized tiny orchestra bass channel
  59. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  60. MusicTinyOrchestraBassMode2 = _entry_type("MusicTinyOrchestraBassMode2", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_2)
  61. #: Turn off the second mode of the synchronized tiny orchestra bass channel
  62. MusicTinyOrchestraBassMode2Stop = _entry_type("MusicTinyOrchestraBassMode2Stop", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_2_Stop)
  63. #: Turn on the third mode of the synchronized tiny orchestra bass channel
  64. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  65. MusicTinyOrchestraBassMode3 = _entry_type("MusicTinyOrchestraBassMode3", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_3)
  66. #: Turn off the third mode of the synchronized tiny orchestra bass channel
  67. MusicTinyOrchestraBassMode3Stop = _entry_type("MusicTinyOrchestraBassMode3Stop", _clad_enum.Music_Tiny_Orchestra_Bass_Mode_3_Stop)
  68. #: Turn off all synchronized tiny orchestra bass channels
  69. MusicTinyOrchestraBassStop = _entry_type("MusicTinyOrchestraBassStop", _clad_enum.Music_Tiny_Orchestra_Bass_Stop)
  70. #: Turn on the first mode of the synchronized tiny orchestra glock pluck channel
  71. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  72. MusicTinyOrchestraGlockPluckMode1 = _entry_type("MusicTinyOrchestraGlockPluckMode1", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_1)
  73. #: Turn off the first mode of the synchronized tiny orchestra glock pluck channel
  74. MusicTinyOrchestraGlockPluckMode1Stop = _entry_type("MusicTinyOrchestraGlockPluckMode1Stop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_1_Stop)
  75. #: Turn on the second mode of the synchronized tiny orchestra glock pluck channel
  76. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  77. MusicTinyOrchestraGlockPluckMode2 = _entry_type("MusicTinyOrchestraGlockPluckMode2", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_2)
  78. #: Turn off the second mode of the synchronized tiny orchestra glock pluck channel
  79. MusicTinyOrchestraGlockPluckMode2Stop = _entry_type("MusicTinyOrchestraGlockPluckMode2Stop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_2_Stop)
  80. #: Turn on the third mode of the synchronized tiny orchestra glock pluck channel
  81. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  82. MusicTinyOrchestraGlockPluckMode3 = _entry_type("MusicTinyOrchestraGlockPluckMode3", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_3)
  83. #: Turn off the third mode of the synchronized tiny orchestra glock pluck channel
  84. MusicTinyOrchestraGlockPluckMode3Stop = _entry_type("MusicTinyOrchestraGlockPluckMode3Stop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Mode_3_Stop)
  85. #: Turn off all synchronized tiny orchestra glock pluck channels
  86. MusicTinyOrchestraGlockPluckStop = _entry_type("MusicTinyOrchestraGlockPluckStop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_Stop)
  87. #: Turn on the first mode of the synchronized tiny orchestra strings channel
  88. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  89. MusicTinyOrchestraStringsMode1 = _entry_type("MusicTinyOrchestraStringsMode1", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_1)
  90. #: Turn off the first mode of the synchronized tiny orchestra strings channel
  91. MusicTinyOrchestraStringsMode1Stop = _entry_type("MusicTinyOrchestraStringsMode1Stop", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_1_Stop)
  92. #: Turn on the second mode of the synchronized tiny orchestra strings channel
  93. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  94. MusicTinyOrchestraStringsMode2 = _entry_type("MusicTinyOrchestraStringsMode2", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_2)
  95. #: Turn off the second mode of the synchronized tiny orchestra strings channel
  96. MusicTinyOrchestraStringsMode2Stop = _entry_type("MusicTinyOrchestraStringsMode2Stop", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_2_Stop)
  97. #: Turn on the third mode of the synchronized tiny orchestra strings channel
  98. #: (Requires the tiny orchestra system be initialized, and will loop until the system is turned off)
  99. MusicTinyOrchestraStringsMode3 = _entry_type("MusicTinyOrchestraStringsMode3", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_3)
  100. #: Turn off the third mode of the synchronized tiny orchestra strings channel
  101. MusicTinyOrchestraStringsMode3Stop = _entry_type("MusicTinyOrchestraStringsMode3Stop", _clad_enum.Music_Tiny_Orchestra_Strings_Mode_3_Stop)
  102. #: Turn off all synchronized tiny orchestra strings channels
  103. MusicTinyOrchestraStringsStop = _entry_type("MusicTinyOrchestraStringsStop", _clad_enum.Music_Tiny_Orchestra_Strings_Stop)
  104. #: Plays the first tiny orchestra bass track
  105. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  106. MusicTinyOrchestraBass01Loop = _entry_type("MusicTinyOrchestraBass01Loop", _clad_enum.Music_Tiny_Orchestra_Bass_01_Loop)
  107. #: Stops active plays of the first tiny orchestra bass track
  108. MusicTinyOrchestraBass01LoopStop = _entry_type("MusicTinyOrchestraBass01LoopStop", _clad_enum.Music_Tiny_Orchestra_Bass_01_Loop_Stop)
  109. #: Plays the second tiny orchestra bass track
  110. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  111. MusicTinyOrchestraBass02Loop = _entry_type("MusicTinyOrchestraBass02Loop", _clad_enum.Music_Tiny_Orchestra_Bass_02_Loop)
  112. #: Stops active plays of the second tiny orchestra bass track
  113. MusicTinyOrchestraBass02LoopStop = _entry_type("MusicTinyOrchestraBass02LoopStop", _clad_enum.Music_Tiny_Orchestra_Bass_02_Loop_Stop)
  114. #: Plays the third tiny orchestra bass track
  115. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  116. MusicTinyOrchestraBass03Loop = _entry_type("MusicTinyOrchestraBass03Loop", _clad_enum.Music_Tiny_Orchestra_Bass_03_Loop)
  117. #: Stops active plays of the third tiny orchestra bass track
  118. MusicTinyOrchestraBass03LoopStop = _entry_type("MusicTinyOrchestraBass03LoopStop", _clad_enum.Music_Tiny_Orchestra_Bass_03_Loop_Stop)
  119. #: Plays the first tiny orchestra glock pluck track
  120. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  121. MusicTinyOrchestraGlockPluck01Loop = _entry_type("MusicTinyOrchestraGlockPluck01Loop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_01_Loop)
  122. #: Stops active plays of the first tiny orchestra glock pluck track
  123. MusicTinyOrchestraGlockPluck01LoopStop = _entry_type("MusicTinyOrchestraGlockPluck01LoopStop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_01_Loop_Stop)
  124. #: Plays the second tiny orchestra glock pluck track
  125. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  126. MusicTinyOrchestraGlockPluck02Loop = _entry_type("MusicTinyOrchestraGlockPluck02Loop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_02_Loop)
  127. #: Stops active plays of the second tiny orchestra glock pluck track
  128. MusicTinyOrchestraGlockPluck02LoopStop = _entry_type("MusicTinyOrchestraGlockPluck02LoopStop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_02_Loop_Stop)
  129. #: Plays the third tiny orchestra glock pluck track
  130. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  131. MusicTinyOrchestraGlockPluck03Loop = _entry_type("MusicTinyOrchestraGlockPluck03Loop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_03_Loop)
  132. #: Stops active plays of the third tiny orchestra glock pluck track
  133. MusicTinyOrchestraGlockPluck03LoopStop = _entry_type("MusicTinyOrchestraGlockPluck03LoopStop", _clad_enum.Music_Tiny_Orchestra_Glock_Pluck_03_Loop_Stop)
  134. #: Plays the first tiny orchestra string track
  135. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  136. MusicTinyOrchestraStrings01Loop = _entry_type("MusicTinyOrchestraStrings01Loop", _clad_enum.Music_Tiny_Orchestra_Strings_01_Loop)
  137. #: Stops active plays of the first tiny orchestra strings track
  138. MusicTinyOrchestraStrings01LoopStop = _entry_type("MusicTinyOrchestraStrings01LoopStop", _clad_enum.Music_Tiny_Orchestra_Strings_01_Loop_Stop)
  139. #: Plays the second tiny orchestra string track
  140. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  141. MusicTinyOrchestraStrings02Loop = _entry_type("MusicTinyOrchestraStrings02Loop", _clad_enum.Music_Tiny_Orchestra_Strings_02_Loop)
  142. #: Stops active plays of the second tiny orchestra strings track
  143. MusicTinyOrchestraStrings02LoopStop = _entry_type("MusicTinyOrchestraStrings02LoopStop", _clad_enum.Music_Tiny_Orchestra_Strings_02_Loop_Stop)
  144. #: Plays the third tiny orchestra string track
  145. #: (Does not repeat. Does not interact with the synchronized tiny orchestra system)
  146. MusicTinyOrchestraStrings03Loop = _entry_type("MusicTinyOrchestraStrings03Loop", _clad_enum.Music_Tiny_Orchestra_Strings_03_Loop)
  147. #: Stops active plays of the third tiny orchestra strings track
  148. MusicTinyOrchestraStrings03LoopStop = _entry_type("MusicTinyOrchestraStrings03LoopStop", _clad_enum.Music_Tiny_Orchestra_Strings_03_Loop_Stop)
  149. #: Plays the cube whack music
  150. MusicCubeWhack = _entry_type("MusicCubeWhack", _clad_enum.Music_Cube_Whack)
  151. #: Plays the level 1 hot potato music
  152. #: (Does not repeat)
  153. MusicHotPotatoLevel1Loop = _entry_type("MusicHotPotatoLevel1Loop", _clad_enum.Music_Hot_Potato_Level_1_Loop)
  154. #: Stops active plays of the level 1 hot potato music
  155. MusicHotPotatoLevel1LoopStop = _entry_type("MusicHotPotatoLevel1LoopStop", _clad_enum.Music_Hot_Potato_Level_1_Loop_Stop)
  156. #: Plays the level 2 hot potato music
  157. #: (Does not repeat)
  158. MusicHotPotatoLevel2Loop = _entry_type("MusicHotPotatoLevel2Loop", _clad_enum.Music_Hot_Potato_Level_2_Loop)
  159. #: Stops active plays of the level 2 hot potato music
  160. MusicHotPotatoLevel2LoopStop = _entry_type("MusicHotPotatoLevel2LoopStop", _clad_enum.Music_Hot_Potato_Level_2_Loop_Stop)
  161. #: Plays the level 3 hot potato music
  162. #: (Does not repeat)
  163. MusicHotPotatoLevel3Loop = _entry_type("MusicHotPotatoLevel3Loop", _clad_enum.Music_Hot_Potato_Level_3_Loop)
  164. #: Stops active plays of the level 3 hot potato music
  165. MusicHotPotatoLevel3LoopStop = _entry_type("MusicHotPotatoLevel3LoopStop", _clad_enum.Music_Hot_Potato_Level_3_Loop_Stop)
  166. #: Plays the level 4 hot potato music
  167. #: (Does not repeat)
  168. MusicHotPotatoLevel4Loop = _entry_type("MusicHotPotatoLevel4Loop", _clad_enum.Music_Hot_Potato_Level_4_Loop)
  169. #: Stops active plays of the level 4 hot potato music
  170. MusicHotPotatoLevel4LoopStop = _entry_type("MusicHotPotatoLevel4LoopStop", _clad_enum.Music_Hot_Potato_Level_4_Loop_Stop)
  171. #: Plays the magic fortune teller reveal music
  172. MusicMagic8RevealStinger = _entry_type("MusicMagic8RevealStinger", _clad_enum.Music_Magic8_Reveal_Stinger)
  173. #: Stops active plays of the magic fortune teller reveal music
  174. MusicMagic8RevealStingerStop = _entry_type("MusicMagic8RevealStingerStop", _clad_enum.Music_Magic8_Reveal_Stinger_Stop)
  175. #: Plays 80s style music
  176. #: (Does not repeat)
  177. MusicStyle80S1159BpmLoop = _entry_type("MusicStyle80S1159BpmLoop", _clad_enum.Music_Style_80S_1_159Bpm_Loop)
  178. #: Stops active plays of 80s style music
  179. MusicStyle80S1159BpmLoopStop = _entry_type("MusicStyle80S1159BpmLoopStop", _clad_enum.Music_Style_80S_1_159Bpm_Loop_Stop)
  180. #: Plays disco style music
  181. #: (Does not repeat)
  182. MusicStyleDisco1135BpmLoop = _entry_type("MusicStyleDisco1135BpmLoop", _clad_enum.Music_Style_Disco_1_135Bpm_Loop)
  183. #: Stops active plays of disco style music
  184. MusicStyleDisco1135BpmLoopStop = _entry_type("MusicStyleDisco1135BpmLoopStop", _clad_enum.Music_Style_Disco_1_135Bpm_Loop_Stop)
  185. #: Plays mambo style music
  186. #: (Does not repeat)
  187. MusicStyleMambo1183BpmLoop = _entry_type("MusicStyleMambo1183BpmLoop", _clad_enum.Music_Style_Mambo_1_183Bpm_Loop)
  188. #: Stops active plays of mambo style music
  189. MusicStyleMambo1183BpmLoopStop = _entry_type("MusicStyleMambo1183BpmLoopStop", _clad_enum.Music_Style_Mambo_1_183Bpm_Loop_Stop)
  190. #: Stops all playing sound effects
  191. SfxGlobalStop = _entry_type("SfxGlobalStop", _clad_enum.Sfx_Global_Stop)
  192. #: Plays cube light sound
  193. SfxCubeLight = _entry_type("SfxCubeLight", _clad_enum.Sfx_Cube_Light)
  194. #: Stops active plays of cube light sound
  195. SfxCubeLightStop = _entry_type("SfxCubeLightStop", _clad_enum.Sfx_Cube_Light_Stop)
  196. #: Plays firetruck timer start sound
  197. SfxFiretruckTimerStart = _entry_type("SfxFiretruckTimerStart", _clad_enum.Sfx_Firetruck_Timer_Start)
  198. #: Stops active plays of firetruck timer start sound
  199. SfxFiretruckTimerStartStop = _entry_type("SfxFiretruckTimerStartStop", _clad_enum.Sfx_Firetruck_Timer_Start_Stop)
  200. #: Plays firetruck timer end sound
  201. SfxFiretruckTimerEnd = _entry_type("SfxFiretruckTimerEnd", _clad_enum.Sfx_Firetruck_Timer_End)
  202. #: Stops active plays of firetruck timer end sound
  203. SfxFiretruckTimerEndStop = _entry_type("SfxFiretruckTimerEndStop", _clad_enum.Sfx_Firetruck_Timer_End_Stop)
  204. #: Plays game win sound
  205. SfxGameWin = _entry_type("SfxGameWin", _clad_enum.Sfx_Game_Win)
  206. #: Stops active plays of game win sound
  207. SfxGameWinStop = _entry_type("SfxGameWinStop", _clad_enum.Sfx_Game_Win_Stop)
  208. #: Plays game lose sound
  209. SfxGameLose = _entry_type("SfxGameLose", _clad_enum.Sfx_Game_Lose)
  210. #: Stops active plays of game lose sound
  211. SfxGameLoseStop = _entry_type("SfxGameLoseStop", _clad_enum.Sfx_Game_Lose_Stop)
  212. #: Plays hot potato cube charge sound
  213. SfxHotPotatoCubeCharge = _entry_type("SfxHotPotatoCubeCharge", _clad_enum.Sfx_Hot_Potato_Cube_Charge)
  214. #: Stops active plays of hot potato cube charge sound
  215. SfxHotPotatoCubeChargeStop = _entry_type("SfxHotPotatoCubeChargeStop", _clad_enum.Sfx_Hot_Potato_Cube_Charge_Stop)
  216. #: Plays hot potato cube ready sound
  217. SfxHotPotatoCubeReady = _entry_type("SfxHotPotatoCubeReady", _clad_enum.Sfx_Hot_Potato_Cube_Ready)
  218. #: Stops active plays of hot potato cube ready sound
  219. SfxHotPotatoCubeReadyStop = _entry_type("SfxHotPotatoCubeReadyStop", _clad_enum.Sfx_Hot_Potato_Cube_Ready_Stop)
  220. #: Plays hot potato pass sound
  221. SfxHotPotatoPass = _entry_type("SfxHotPotatoPass", _clad_enum.Sfx_Hot_Potato_Pass)
  222. #: Stops active plays of hot potato pass sound
  223. SfxHotPotatoPassStop = _entry_type("SfxHotPotatoPassStop", _clad_enum.Sfx_Hot_Potato_Pass_Stop)
  224. #: Plays hot potato timer end sound
  225. SfxHotPotatoTimerEnd = _entry_type("SfxHotPotatoTimerEnd", _clad_enum.Sfx_Hot_Potato_Timer_End)
  226. #: Stops active plays of hot potato timer end sound
  227. SfxHotPotatoTimerEndStop = _entry_type("SfxHotPotatoTimerEndStop", _clad_enum.Sfx_Hot_Potato_Timer_End_Stop)
  228. #: Plays magic fortune teller message reveal sound
  229. SfxMagic8MessageReveal = _entry_type("SfxMagic8MessageReveal", _clad_enum.Sfx_Magic8_Message_Reveal)
  230. #: Stops active plays of magic fortune teller message reveal sound
  231. SfxMagic8MessageRevealStop = _entry_type("SfxMagic8MessageRevealStop", _clad_enum.Sfx_Magic8_Message_Reveal_Stop)
  232. #: Plays magnet attract sound
  233. SfxMagnetAttract = _entry_type("SfxMagnetAttract", _clad_enum.Sfx_Magnet_Attract)
  234. #: Stops active plays of magnet attrack sound
  235. SfxMagnetAttractStop = _entry_type("SfxMagnetAttractStop", _clad_enum.Sfx_Magnet_Attract_Stop)
  236. #: Plays magnet repel sound
  237. SfxMagnetRepel = _entry_type("SfxMagnetRepel", _clad_enum.Sfx_Magnet_Repel)
  238. #: Stops active plays of magnet repel sound
  239. SfxMagnetRepelStop = _entry_type("SfxMagnetRepelStop", _clad_enum.Sfx_Magnet_Repel_Stop)
  240. #: Plays countdown sound
  241. SfxSharedCountdown = _entry_type("SfxSharedCountdown", _clad_enum.Sfx_Shared_Countdown)
  242. #: Stops active plays of countdown sound
  243. SfxSharedCountdownStop = _entry_type("SfxSharedCountdownStop", _clad_enum.Sfx_Shared_Countdown_Stop)
  244. #: Plays cube light on sound
  245. SfxSharedCubeLightOn = _entry_type("SfxSharedCubeLightOn", _clad_enum.Sfx_Shared_Cube_Light_On)
  246. #: Stops active plays of cube light on sound
  247. SfxSharedCubeLightOnStop = _entry_type("SfxSharedCubeLightOnStop", _clad_enum.Sfx_Shared_Cube_Light_On_Stop)
  248. #: Plays error sound
  249. SfxSharedError = _entry_type("SfxSharedError", _clad_enum.Sfx_Shared_Error)
  250. #: Stops active plays of error sound
  251. SfxSharedErrorStop = _entry_type("SfxSharedErrorStop", _clad_enum.Sfx_Shared_Error_Stop)
  252. #: Plays success sound
  253. SfxSharedSuccess = _entry_type("SfxSharedSuccess", _clad_enum.Sfx_Shared_Success)
  254. #: Stops active plays of success sound
  255. SfxSharedSuccessStop = _entry_type("SfxSharedSuccessStop", _clad_enum.Sfx_Shared_Success_Stop)
  256. #: Plays timer click sound
  257. SfxSharedTimerClick = _entry_type("SfxSharedTimerClick", _clad_enum.Sfx_Shared_Timer_Click)
  258. #: Stops active plays of timer click sound
  259. SfxSharedTimerClickStop = _entry_type("SfxSharedTimerClickStop", _clad_enum.Sfx_Shared_Timer_Click_Stop)
  260. #: Plays timer end sound
  261. SfxSharedTimerEnd = _entry_type("SfxSharedTimerEnd", _clad_enum.Sfx_Shared_Timer_End)
  262. #: Stops active plays of timer end sound
  263. SfxSharedTimerEndStop = _entry_type("SfxSharedTimerEndStop", _clad_enum.Sfx_Shared_Timer_End_Stop)
  264. #: Plays timer warning sound
  265. SfxSharedTimerWarning = _entry_type("SfxSharedTimerWarning", _clad_enum.Sfx_Shared_Timer_Warning)
  266. #: Stop all active plays of timer warning sound
  267. SfxSharedTimerWarningStop = _entry_type("SfxSharedTimerWarningStop", _clad_enum.Sfx_Shared_Timer_Warning_Stop)
  268. #: Plays a fun music sound (that loops indefinitely).
  269. MusicFunLoop = _entry_type("Music_Fun_Loop", _clad_enum.Music_Fun_Loop)
  270. #: Stops all active plays of the fun music sound.
  271. MusicFunLoopStop = _entry_type("Music_Fun_Loop_Stop", _clad_enum.Music_Fun_Loop_Stop)
  272. #: Plays the putt-hole-success sound.
  273. SfxPuttHoleSuccess = _entry_type("Sfx_Putt_Hole_Success", _clad_enum.Sfx_Putt_Hole_Success)
  274. #: Stops all active plays of the putt-hole-success sound.
  275. SfxPuttHoleSuccessStop = _entry_type("Sfx_Putt_Hole_Success_Stop", _clad_enum.Sfx_Putt_Hole_Success_Stop)
  276. #: Plays alien invasion sound.
  277. Sfx_Alien_Invasion_Ufo = _entry_type("Sfx_Alien_Invasion_Ufo", _clad_enum.Sfx_Alien_Invasion_Ufo)
  278. #: Stops all active plays of the alien invasion sound.
  279. Sfx_Alien_Invasion_Ufo_Stop = _entry_type("Sfx_Alien_Invasion_Ufo_Stop", _clad_enum.Sfx_Alien_Invasion_Ufo_Stop)
  280. #: Plays brick bash sound.
  281. Sfx_Brick_Bash = _entry_type("Sfx_Brick_Bash", _clad_enum.Sfx_Brick_Bash)
  282. #: Stops all active plays of the brick bash sound.
  283. Sfx_Brick_Bash_Stop = _entry_type("Sfx_Brick_Bash_Stop", _clad_enum.Sfx_Brick_Bash_Stop)
  284. #: Plays constellation star sound.
  285. Sfx_Constellation_Star = _entry_type("Sfx_Constellation_Star", _clad_enum.Sfx_Constellation_Star)
  286. #: Stops all active plays of the constellation star sound.
  287. Sfx_Constellation_Star_Stop = _entry_type("Sfx_Constellation_Star_Stop", _clad_enum.Sfx_Constellation_Star_Stop)
  288. #: Plays egg cracking sound.
  289. Sfx_Egg_Decorating_Crack = _entry_type("Sfx_Egg_Decorating_Crack", _clad_enum.Sfx_Egg_Decorating_Crack)
  290. #: Stops all active plays of the egg cracking sound.
  291. Sfx_Egg_Decorating_Crack_Stop = _entry_type("Sfx_Egg_Decorating_Crack_Stop", _clad_enum.Sfx_Egg_Decorating_Crack_Stop)
  292. #: Plays fidget spinner loop.
  293. Sfx_Fidget_Spinner_Loop_Play = _entry_type("Sfx_Fidget_Spinner_Loop_Play", _clad_enum.Sfx_Fidget_Spinner_Loop_Play)
  294. #: Stops all the fidget spinned looping sound.
  295. Sfx_Fidget_Spinner_Loop_Stop = _entry_type("Sfx_Fidget_Spinner_Loop_Stop", _clad_enum.Sfx_Fidget_Spinner_Loop_Stop)
  296. #: Plays fidget spinner sound.
  297. Sfx_Fidget_Spinner_Start = _entry_type("Sfx_Fidget_Spinner_Start", _clad_enum.Sfx_Fidget_Spinner_Start)
  298. #: Stops all active plays of the fidget spinner sound.
  299. Sfx_Fidget_Spinner_Start_Stop = _entry_type("Sfx_Fidget_Spinner_Start_Stop", _clad_enum.Sfx_Fidget_Spinner_Start_Stop)
  300. #: Plays flappy sound.
  301. Sfx_Flappy_Increase = _entry_type("Sfx_Flappy_Increase", _clad_enum.Sfx_Flappy_Increase)
  302. #: Stops all active plays of the flappy sound.
  303. Sfx_Flappy_Increase_Stop = _entry_type("Sfx_Flappy_Increase_Stop", _clad_enum.Sfx_Flappy_Increase_Stop)
  304. #: Plays morse code dash sound.
  305. Sfx_Morse_Code_Dash = _entry_type("Sfx_Morse_Code_Dash", _clad_enum.Sfx_Morse_Code_Dash)
  306. #: Stops all active plays of the morse code dash sound.
  307. Sfx_Morse_Code_Dash_Stop = _entry_type("Sfx_Morse_Code_Dash_Stop", _clad_enum.Sfx_Morse_Code_Dash_Stop)
  308. #: Plays morse code dot sound.
  309. Sfx_Morse_Code_Dot = _entry_type("Sfx_Morse_Code_Dot", _clad_enum.Sfx_Morse_Code_Dot)
  310. #: Stops all active plays of the morse code dot sound.
  311. Sfx_Morse_Code_Dot_Stop = _entry_type("Sfx_Morse_Code_Dot_Stop", _clad_enum.Sfx_Morse_Code_Dot_Stop)
  312. #: Plays morse code silent sound.
  313. Sfx_Morse_Code_Silent = _entry_type("Sfx_Morse_Code_Silent", _clad_enum.Sfx_Morse_Code_Silent)
  314. #: Stops all active plays of the morse code silent sound.
  315. Sfx_Morse_Code_Silent_Stop = _entry_type("Sfx_Morse_Code_Silent_Stop", _clad_enum.Sfx_Morse_Code_Silent_Stop)
  316. #: Plays paddle ball bounce sound.
  317. Sfx_Paddle_Ball_Bounce = _entry_type("Sfx_Paddle_Ball_Bounce", _clad_enum.Sfx_Paddle_Ball_Bounce)
  318. #: Stops all active plays of the paddle ball bounce sound.
  319. Sfx_Paddle_Ball_Bounce_Stop = _entry_type("Sfx_Paddle_Ball_Bounce_Stop", _clad_enum.Sfx_Paddle_Ball_Bounce_Stop)
  320. #: Plays the first pot of gold sound sound.
  321. Sfx_Pot_O_Gold_Blip_Level1 = _entry_type("Sfx_Pot_O_Gold_Blip_Level1", _clad_enum.Sfx_Pot_O_Gold_Blip_Level1)
  322. #: Stops all active plays of the first pot of gold blip sound.
  323. Sfx_Pot_O_Gold_Blip_Level1_Stop = _entry_type("Sfx_Pot_O_Gold_Blip_Level1_Stop", _clad_enum.Sfx_Pot_O_Gold_Blip_Level1_Stop)
  324. #: Plays the second pot of gold sound sound.
  325. Sfx_Pot_O_Gold_Blip_Level2 = _entry_type("Sfx_Pot_O_Gold_Blip_Level2", _clad_enum.Sfx_Pot_O_Gold_Blip_Level2)
  326. #: Stops all active plays of the second pot of gold blip sound.
  327. Sfx_Pot_O_Gold_Blip_Level2_Stop = _entry_type("Sfx_Pot_O_Gold_Blip_Level2_Stop", _clad_enum.Sfx_Pot_O_Gold_Blip_Level2_Stop)
  328. #: Plays the third pot of gold sound sound.
  329. Sfx_Pot_O_Gold_Blip_Level3 = _entry_type("Sfx_Pot_O_Gold_Blip_Level3", _clad_enum.Sfx_Pot_O_Gold_Blip_Level3)
  330. #: Stops all active plays of the third pot of gold blip sound.
  331. Sfx_Pot_O_Gold_Blip_Level3_Stop = _entry_type("Sfx_Pot_O_Gold_Blip_Level3_Stop", _clad_enum.Sfx_Pot_O_Gold_Blip_Level3_Stop)
  332. AudioEvents._init_class(warn_on_missing_definitions=False)