Commit Graph

42 Commits

Author SHA1 Message Date
Martin Natano b68ca517e6 Clean up math functions
- Remove checking for standard functions from the build system
- Prefix all invocations with std::
- Replace suffixed functions with unprefixed versions
- Include <cmath> in all files that use it and remove the global include

e.g. floorf(x) -> std::floor(x)
2023-04-19 19:31:40 +02:00
Brian Phlipot 37aff00d6e Require C++20 for building Stepmania. 2022-10-03 16:21:19 -07:00
Michael Sundqvist 0cba3579de Remove global "using namespace std;" declarations, use "std::" prefixes on all std elements
Fix whitespace changes
2022-07-31 22:14:38 +02:00
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Colby Klein 4977f29fe3 silence a bunch of msvc warnings 2019-03-28 15:05:07 -07:00
Mark Blum e125053f4c Made announcers repeat their lines less 2018-01-20 15:23:12 -05:00
Kyzentun Keeslala bd19b1b29a Added global lua function for fetching the list of available sound drivers. Moved WaveOut to the front of the list to make it the first driver to try on Windows. 2016-03-05 18:11:59 -07:00
Jason Felds 80542a5a7d Require reasons for checkpoints. 2015-06-08 18:37:13 -04:00
Kyzentun 8993cfe729 Added MuteActions preference checking to RageSound::PlayCopy. Modified ActorSound and GameSoundManager::PlayOnce to take is_action args. Fixed doc for playcommand to mention the param table. 2015-04-08 16:15:14 -06:00
Kyzentun b293a8c073 Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one. 2015-02-28 06:25:02 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07:00
sigatrev 6487261f32 maintain music rate speed adjust after music has finished
Keeps things like BGA effect clocks consistent when music stops.
2014-08-01 23:45:21 -05:00
sigatrev e81af8c131 Enums for TapNoteType, TapNoteSubType, and TapNoteSource
I intend to make additional useful information available on judgments,
such as TapNoteType and TapNoteSubType( for hold judgments ).

I am submitting this part as a separate pull request because it is more
generally applicable to anything TapNote related.
2014-07-25 18:45:02 -05:00
Kyzentun 69b5f1ae61 Fixed two typos. 2014-07-19 16:05:16 -06:00
Kyzentun 4c97ff64a0 Changed CheckEnum to use lua_isnoneornil so that enum args can be made properly optional. Changed PlayMusicPart to allow nil for optional args so optional args would be independent. 2014-07-19 15:20:02 -06:00
sigatrev f87c9f83b4 add SOUND:IsTimingDelayed method and fixed SOUND:PlayMusicPart
PlayMusicPart does not immediately start the new music. IsTimingDelayed
will return true until the new music has started.

The "applyRate" argument of PlayMusicPart was being applied to the
"align_beat" property. Added an additional argument to for "align_beat"
and made "applyRate" work properly.
2014-07-19 15:03:54 -05:00
sigatrev 55a5551058 added StopMusic method 2014-04-18 18:59:57 -05:00
Kyzentun 901ba529e8 Made SOUND:PlayMusicPart pass on the loop and applyRate args. 2014-02-12 17:36:43 -07:00
Jason Felds 07b9fb6da5 The big NULL replacement party part 6.
...and ', NULL' had even more to replace.
2013-05-03 23:49:23 -04:00
Jason Felds 28e5148dec The big NULL replacement party part 5.
Right. ' = NULL' would get a lot of these.
2013-05-03 23:39:52 -04:00
Jason Felds 9f24627bf9 The big NULL replacement party part 1.
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Devin J. Pohly 7bdfc454ae obviate goto by reordering logic 2013-01-25 17:03:45 -05:00
Jason Felds a15cbc431d War on -Werror, part 14: More hodgepodge. 2012-12-27 12:45:04 -05:00
Jason Felds 9f3993b4ab Add the PlayMusicPart lua binding.
Required params are musicPath, musicStart, and musicLength.
Optional params are fadeIn and fadeOut in that order.
2011-10-08 11:41:05 -04:00
Mark Cannon 8099e25dcc stage 3 of TimingData changes: changed external interface, enforce encapsulation more strictly 2011-09-15 03:28:58 +00:00
Jason Felds 7399f19865 [timing] Convert the others to use AddSegment.
I was given enough confirmation to continue on.
2011-07-14 19:23:29 -04:00
Jason Felds 1e296ed0bf [notesloader] More virtuals. 2011-06-09 21:27:47 -04:00
Jason Felds b6bf776716 New branch: [notesloader]
Time to better unify our files and refactor properly.
2011-06-09 13:46:30 -04:00
Jason Felds 7a5475b139 [default -> splittiming] Usual updates. 2011-05-11 12:09:29 -04:00
AJ Kelly f31982985c [GameSoundManager] Added PlayAnnouncer Lua binding. 2011-05-11 02:01:42 -05:00
Jason Felds fb8b387fb7 [splittiming] Compiles and links.
Not guaranteed to work. Adjustments to GameState
and SongPosition may still be needed.
2011-05-10 14:53:59 -04:00
Jason Felds 9cb41af5f4 [splittiming] All but ScreenEdit. (67) 2011-05-09 21:11:33 -04:00
AJ Kelly ca383b7fcc GetExtension takes in an RString. steve was right, I don't need to .c_str() here 2011-04-03 12:44:23 -05:00
AJ Kelly b91dc69043 change how these are compared by putting the load in the condition too 2011-03-29 23:50:41 -05:00
AJ Kelly 6c4d9673f3 [GameSoundManager] properly load .sm and .ssc files instead of assuming they're ssc files 2011-03-29 15:13:59 -05:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly cbb32635d5 attempt to load .sm files if loading .ssc files fails 2011-03-16 16:33:27 -05:00
Jason Felds 9d13036e08 Add @briefs to the Luna classes.
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
Jason Felds 565b9f9306 Get SSCLoader used when appropriate. 2011-02-11 00:10:57 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00