1320 Commits

Author SHA1 Message Date
Patrik Nilsson c42501ba65 Add "Audio Sample Rate" option with translations
The English display name for the option has been updated to "Audio Sample Rate" for better clarity. Translations for this new option title have been added for Spanish, French, German, Japanese, Korean, Dutch, Polish, Slovak, and Traditional Chinese.
2025-06-01 08:37:19 -07:00
Patrik Nilsson 2e18b57da0 Implement configurable Sample Rate in options
Key changes:
- Added "Sample Rate" to `ScreenOptionsGraphicsSound` with choices:
    - "Default" (resolves to 44100 Hz for now)
    - "44100 Hz"
    - "48000 Hz"
- Created a new ConfOption "PreferredSampleRate" in `ScreenOptionsMasterPrefs.cpp` mapping UI choices to the integer values (0, 44100, 48000) for the existing `m_iSoundPreferredSampleRate` preference.
- Updated relevant sound drivers:
    - DirectSound (RageSoundDriver_DSound_Software): Primary buffer now attempts to use the preferred rate. Secondary buffers already handled it correctly.
    - WaveOut (RageSoundDriver_WaveOut): Already handled 0 as 44.1kHz correctly.
    - PulseAudio (RageSoundDriver_PulseAudio): Ensured m_InitStream uses the constructor-initialized rate based on preference.
    - AudioUnit (RageSoundDriver_AU): Already handled 0 as 44.1kHz and attempts to set hardware rate.
    - OSS (RageSoundDriver_OSS): Updated to read and apply the preferred sample rate.
    - WDMKS (RageSoundDriver_WDMKS): Updated to pass the resolved preferred rate to its stream opening logic.
    - Null (RageSoundDriver_Null): Already handled 0 as 44.1kHz correctly.
- Updated `RageSoundReader_Chain` constructor to use the preferred system sample rate for its internal default.
- Added English localization for the new option title and explanation.

The implementation ensures that if the preference is 0 (Default), the system currently defaults to 44100 Hz across all drivers. This lays the groundwork for future dynamic hardware rate detection. A game restart is recommended for the new sample rate to take full effect.
2025-06-01 08:37:19 -07:00
dando92 9f5a4eba42 Added Bookkeeping screen in fallback 2025-03-20 21:29:49 -07:00
Crash Cringle 4f0febb57c Rename DefaultSyncBias --> DefaultSyncOffset 2025-03-18 07:28:50 -07:00
Crash Cringle 6b50f9a90c Rename MachineSyncBias --> DefaultSyncBias 2025-03-16 15:42:41 -07:00
Crash Cringle 9529bfd142 Change MachineSyncBias prefs to an enum SyncBias, Changing this song triggers a reload of songs, added new option effect for reloading songs 2025-03-16 15:42:41 -07:00
sukibaby d6e8e0ba7f Add capital NULL in fallbacks for non-English languages 2025-03-09 11:16:12 -07:00
Crash Cringle 031cb7c8a2 Capitalize NULL String 2025-03-09 10:05:01 -07:00
sukibaby 34de803f7b Add MachineSyncBias strings to language fallbacks 2025-03-09 09:57:35 -07:00
Crash Cringle c3886adb07 Update Banner handling for new sorts 2025-03-03 23:36:06 -08:00
Crash Cringle 05cd7ed922 reimplement "SyncBias" as something that tells us the sync of the pack so we may adjust accordingly rather than the blanket sync to apply to the pack. 2025-03-03 23:25:32 -08:00
Crash Cringle 00342feadc Add new preference: DefaultGroupOffsetSeconds to dictate the default sync bias on the machine when no group.ini is present (or if there is no SyncOffset field in said file).
- Generally Supports either ITG (9ms) or NULL (0ms).
- Alternatively, one could edit the preference manually to put a different value
- Name/Description probably worth ironing out
2025-03-03 23:25:32 -08:00
Yauhen Artsiukhou 705cd55a04 Add native restart menu button
It should replace Simply Love restart hack.
Now it is possible to assign any button to restart.
2024-08-26 10:52:19 -07:00
sukibaby 339aafcd65 Remove bad line from fallback language files 2024-06-09 21:06:49 -07:00
hayoreo 338fdd8892 Add pump mirrors and language. 2024-03-06 16:10:21 -08:00
Crash Cringle d788071d4d Add sorting by Block level
(cherry picked from commit e1c8326a6a71f4a15c3f123391dc3f3331ee4a7b)
2024-02-25 09:36:21 -08:00
Crash Cringle 3fd0bd8ade Creating mapping of preferred sort section name to songs. 2024-02-25 09:36:21 -08:00
Crash Cringle 24876804ef Add Top Grades sort per profile. This allows each player to see their top grades based on the currently used profile.
The present implementation adds 2 new sorts for this, TOP_P1_Grades and TOP_P2_GRADES following the naming convention of TOP_GRADES which returns the machine grades.

I named the sort TopP1Grades rather than TopGradesP1 to prevent the "conflicting" banner error.

Eventually, I'd like to condense this to be 1 sort fed a playernumber or profile parameter in the future.

(cherry picked from commit 731ae501d8a14a196984bf7578afaa9351c22c5c)
2024-02-25 09:36:11 -08:00
teejusb ddc112260f Fix line numbering for ProfileSort options 2023-03-18 12:27:19 -07:00
Crash Cringle f60c1c7f82 Add new Sorting Capabilities for Profile list 2023-03-13 19:56:07 -07:00
Arthur Eubanks f8f6f12999 Add pump shortcut for closing current song folder 2023-01-31 21:31:52 -08:00
quietly-turning e7373836e4 add _fallback redir banners for BeginnerMeter sort
This should fix MissingThemeElement warnings about 'The theme element
"Graphics/Banner BeginnerMeter" is missing.'
2023-01-28 09:23:33 -08:00
Lamar Cooley f62938787a Add new Preference, Maximum Number of Credits
Grant users the ability to change the maximum amount of credits available rather than the constant cap at 20.

(cherry picked from commit 2ec2355d7a7d9fec9410cf6b7d2b5c31a4406074)
(cherry picked from commit 48245ab51600ede16096e70e27c94345918eaed7)
2023-01-24 13:04:27 -08:00
tertu marybig 9b348090a7 HyperShuffle implementation
Also add it to _fallback
2022-06-23 11:09:40 -07:00
Martin Natano 35bc6b8775 Update credits 2022-06-11 23:38:52 +02:00
Martin Natano f60707b506 Add support for incremental updates to ScreenReloadSongs 2022-06-10 19:33:23 +02:00
Martin Natano 34e91bf118 Remove unused base._ini 2022-06-09 21:16:42 +02:00
teejusb 66f0644c15 Add RateModPreservesPitch option to _fallback/engine 2022-06-06 11:21:28 +02:00
Martin Natano b0665a5135 Add din to credits 2022-06-05 12:07:38 +02:00
Martin Natano 15b77ee278 Update documentation 2022-05-28 11:21:13 +02:00
teejusb 6e09b3f5c3 Change back to "default" noteskin instead of "cel" in fallback 2022-05-27 14:35:18 -07:00
teejusb 3e8a843398 Add lambda, set default to cel, rename default 2022-05-27 14:35:18 -07:00
Martin Natano e77357a75e ITGmania credits 2022-05-23 21:49:42 +02:00
Martin Natano 4c0aef69dd Remove legacy network code 2022-04-11 14:50:00 -07:00
Martin Natano 02008eb469 Rename to ITGmania
- executable name:
  - linux: itgmania
  - windows: ITGmania.exe
  - macOS: ITGmania.app
- config path:
  - linux: ~/.itgmania
  - windows; %AppData%\ITGmania
  - macOS: ~/Library/Application Support/ITGmania
2022-04-02 20:14:57 -07:00
teejusb eb0ab83d89 Merge pull request #19 from natano/netman-download-pr1
[Downloads 1/8] Merge /AdditionalSongs into /Songs, and /AdditionalCourses into /Courses
2022-03-12 12:15:47 -08:00
Martin Natano 7bd7a9b41e Tweak sort defaults to make more sense
- SortBPMDivision: Reduce from 20 to 10 to match up with ECS "tiers".
- SortLengthDivision: Increase from 5 seconds to 1 minute. Divisions of
  5 seconds don't seem very useful.
2022-03-12 20:32:21 +01:00
Martin Natano 0861ed45c7 Merge /AdditionalSongs into /Songs, and /AdditionalCourses into /Courses
Includes a backwards-compatibility mechanism to adapt paths when loading
Stats.xml.
2022-03-11 22:35:31 +01:00
Martin Natano f79830e7af Fix typo in IniFile.WriteFile() error handling 2022-02-06 15:31:31 +01:00
teejusb a105e3bd60 Verify that PrefsTable[name] exists before indexing the pref. 2021-09-24 14:57:49 -07:00
Renan Guilherme 1b12bd32b7 _fallback: INI sections must start with brackets (#2127)
Previously, IniFile.ReadFile created sections by checking for brackets
anywhere in the line, causing issues if a value had brackets. This
commit changes the section matching regex, so that only lines that
begin with a bracket can become sections.
2021-07-16 02:31:27 -07:00
vyteking e3174517fe Added Korean translation 2021-04-29 00:03:28 +09:00
Jose Riha de76b95ab2 Add Slovak translation 2020-12-18 14:07:54 +01:00
quietly-turning 21eed3f235 add 21:9 and 9:16 to ConfAspectRatio in _fallback
This adds choices for 21:9 (Ultrawide) and 9:16 (widescreen display in
portrait mode) to the _fallback theme.  Previously, users would have to
manually edit Preferences.ini to achieve either of these.

Since "21:9" is the common marketing term for what is actually 64:27,
I've slightly extended GenChoices() in ConfAspectRatio() to use a "name"
string from the winFracs table is one is provided. If not, the original
behavior of generating user-facing choices from the raw values is
preserved.

See: https://wikipedia.org/wiki/21:9_aspect_ratio

I updated the global AspectRatios table in _fallback/02 Utilities.lua to
match.
2020-04-28 22:47:54 -04:00
Prcuvu de4dc62846 Split Chinese language into Simplified script and Traditional script
ArchHooks function modified for Windows.
2020-02-08 15:46:00 +08:00
Dan Guzek 9666bb0ae2 change a few global Lua variables to be local
Running StepMania with the command line argument of --ExportLuaInformation while the current 5.1's default theme (Lambda) was selected added some seemingly stray Lua variables to the Constants table in ./Docs/Luadoc/Lua.xml.

I spotted them here: http://dguzek.github.io/Lua-For-SM5/LuaAPI#Constants

I'm assuming num, bPreference, and bCategory don't need global scope, so I added the local keyword where appropriate.
2019-12-09 19:45:57 -05:00
Martin Natano 6a4551f958 Detect 8:3 as widescreen (#1929)
The IsUsingWideScreen() function only checked 16:10 and 16:9, now we just
check that the ratio is greater than 16:10. (Coincidentally that's also
what the documentation states about this function.)
2019-11-03 12:10:05 -08:00
RhythmLunatic 61041b8941 metrics 2019-04-19 10:26:04 -05:00
Rhythm Lunatic dcb2f74c8d Add More OptionsList functionality (#1810)
* Add More OptionsList functionality

* Remove Size parameter because it's broken

* Make OptionsList inputs remappable

* Change Next/Prev OptionsList to CodeDetector
2019-03-28 14:49:46 -07:00
Colby Klein 3eb03feadd add the toasty sound back
i missed it a lot
2019-03-20 11:58:19 -07:00