Skip to content

Commit

Permalink
Fix outdated references to FLX_SOUND_ADD_EXT (#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown authored Dec 20, 2024
1 parent 58b4381 commit 3560c23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flixel/sound/FlxSound.hx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class FlxSound extends FlxBasic
/**
* One of the main setup functions for sounds, this function loads a sound from an embedded MP3.
*
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
*
* @param EmbeddedSound An embedded Class object representing an MP3 file.
* @param Looped Whether or not this sound should loop endlessly.
Expand Down
6 changes: 3 additions & 3 deletions flixel/system/frontEnds/SoundFrontEnd.hx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class SoundFrontEnd
/**
* Set up and play a looping background soundtrack.
*
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
*
* @param embeddedMusic The sound file you want to loop in the background.
* @param volume How loud the sound should be, from 0 to 1.
Expand Down Expand Up @@ -134,7 +134,7 @@ class SoundFrontEnd
/**
* Creates a new FlxSound object.
*
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
*
* @param embeddedSound The embedded sound resource you want to play. To stream, use the optional URL parameter instead.
* @param volume How loud to play it (0 to 1).
Expand Down Expand Up @@ -234,7 +234,7 @@ class SoundFrontEnd
/**
* Plays a sound from an embedded sound. Tries to recycle a cached sound first.
*
* **Note:** If the `FLX_SOUND_ADD_EXT` flag is enabled, you may omit the file extension
* **Note:** If the `FLX_DEFAULT_SOUND_EXT` flag is enabled, you may omit the file extension
*
* @param embeddedSound The embedded sound resource you want to play.
* @param volume How loud to play it (0 to 1).
Expand Down
4 changes: 2 additions & 2 deletions tests/coverage/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<haxedef name="FLX_NO_SAVE" />
<haxedef name="FLX_NO_HEALTH" />
<haxedef name="FLX_4_LEGACY_COLLISION" />
<haxedef name="FLX_SOUND_ADD_EXT" />
<haxedef name="FLX_DEFAULT_SOUND_EXT" />
</section>
<section if="coverage2">
<haxedef name="debug" />
Expand All @@ -78,6 +78,6 @@
<haxedef name="FLX_NO_SAVE" />
<haxedef name="FLX_NO_HEALTH" />
<haxedef name="FLX_4_LEGACY_COLLISION" />
<haxedef name="FLX_SOUND_ADD_EXT" />
<haxedef name="FLX_DEFAULT_SOUND_EXT" />
</section>
</project>

0 comments on commit 3560c23

Please sign in to comment.