Skip to content

Commit 3560c23

Browse files
authored
Fix outdated references to FLX_SOUND_ADD_EXT (#3318)
1 parent 58b4381 commit 3560c23

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

flixel/sound/FlxSound.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class FlxSound extends FlxBasic
337337
/**
338338
* One of the main setup functions for sounds, this function loads a sound from an embedded MP3.
339339
*
340-
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
340+
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
341341
*
342342
* @param EmbeddedSound An embedded Class object representing an MP3 file.
343343
* @param Looped Whether or not this sound should loop endlessly.

flixel/system/frontEnds/SoundFrontEnd.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class SoundFrontEnd
103103
/**
104104
* Set up and play a looping background soundtrack.
105105
*
106-
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
106+
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
107107
*
108108
* @param embeddedMusic The sound file you want to loop in the background.
109109
* @param volume How loud the sound should be, from 0 to 1.
@@ -134,7 +134,7 @@ class SoundFrontEnd
134134
/**
135135
* Creates a new FlxSound object.
136136
*
137-
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
137+
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
138138
*
139139
* @param embeddedSound The embedded sound resource you want to play. To stream, use the optional URL parameter instead.
140140
* @param volume How loud to play it (0 to 1).
@@ -234,7 +234,7 @@ class SoundFrontEnd
234234
/**
235235
* Plays a sound from an embedded sound. Tries to recycle a cached sound first.
236236
*
237-
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
237+
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
238238
*
239239
* @param embeddedSound The embedded sound resource you want to play.
240240
* @param volume How loud to play it (0 to 1).

tests/coverage/Project.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<haxedef name="FLX_NO_SAVE" />
5555
<haxedef name="FLX_NO_HEALTH" />
5656
<haxedef name="FLX_4_LEGACY_COLLISION" />
57-
<haxedef name="FLX_SOUND_ADD_EXT" />
57+
<haxedef name="FLX_DEFAULT_SOUND_EXT" />
5858
</section>
5959
<section if="coverage2">
6060
<haxedef name="debug" />
@@ -78,6 +78,6 @@
7878
<haxedef name="FLX_NO_SAVE" />
7979
<haxedef name="FLX_NO_HEALTH" />
8080
<haxedef name="FLX_4_LEGACY_COLLISION" />
81-
<haxedef name="FLX_SOUND_ADD_EXT" />
81+
<haxedef name="FLX_DEFAULT_SOUND_EXT" />
8282
</section>
8383
</project>

0 commit comments

Comments
 (0)