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
2025-05-25 00:27:18 -07:00
2011-09-07 17:42:29 -05:00
2013-07-18 17:41:10 -04:00
2025-05-17 16:59:00 -07:00
2012-07-20 12:08:54 -07:00
2025-05-09 10:08:08 -07:00
2022-05-28 11:21:13 +02:00
2024-09-03 21:19:57 -07:00
2025-03-21 03:32:31 -07:00
2025-05-17 13:43:07 -07:00
2022-06-29 21:26:52 +02:00
2025-04-26 16:21:11 -07:00
2019-09-08 13:05:52 +02:00
2022-06-03 19:47:45 +02:00
2024-09-20 15:45:53 -07:00

ITGmania

ITGmania is a fork of StepMania 5.1, an advanced cross-platform rhythm game for home and arcade use.

Continuous integration Nightly release

Changes to StepMania 5.1

  • Built-in network functionality
  • Fully 64-bit, optimized for modern OSes
  • Reload new songs from within the song select screen
  • The mine fix applied (courtesy of DinsFire64)
  • Held misses tracked in the engine for pad debugging
  • Fixed overlapping hold bug
  • Per-player visual delay
  • Per-player disabling of timing windows
  • New preference to control note render ordering
  • Increased the Stats.xml file size limit to 100MB
  • Changed the default binding for P2/back from hyphen to backslash

Installation

You can choose between using the installer or using the portable build. Using the installer is recommended, because it makes upgrading to new versions easier.

Windows

Windows 7 is the minimum supported version.

  • You will likely have to manually allow the installer to start.

macOS

macOS users need to have macOS 11 (Big Sur) or higher to run ITGmania.

  • Move ITGmania.app to the Applications folder, and then run the following command in Terminal:

    • xattr -dr com.apple.quarantine /Applications/ITGmania
  • You should then add ITGmania to the "Input Monitoring" section of System Preferences (under Security & Privacy)

Linux

Linux users should receive all they need from the package manager of their choice.

  • Debian-based:

    • sudo apt install libgdk-pixbuf-2.0-0 libgl1 libglvnd0 libgtk-3-0 libusb-0.1-4 libxinerama1 libxtst6
  • Fedora-based:

    • sudo yum install gdk-pixbuf2 gtk3 libusb-compat-0.1 libXinerama libXtst
  • Arch Linux:

    • sudo pacman -S mesa gtk3 libusb-compat libxinerama libxtst llvm-libs
  • OpenSUSE:

    • OpenSUSE comes with everything you need pre-installed.

Build From Source

ITGmania can be compiled using CMake. More information about using CMake to build ITGmania can be found in both the Build directory and CMake's documentation.

Resources

Licensing Terms

ITGmania, as well as the Simply Love theme, are both under the GPLv3 license, or at your option, any later version.

If ITGmania code is used in your project, we would also appreciate it if you link back to ITGmania as well as StepMania.

For specific information/legalese:

  • All of our source code is under the GPLv3 license.
  • Songs included within the 'StepMania 5' folder are under the CC-NC license.
  • Simply Love is licensed under the GPLv3, or, at your option, any later version.
  • The copyright for songs in the 'Club Fantastic' folders rests with the original authors. The content is explicitly NOT placed under a Creative Commons license (or similar license), but has been provided free of charge, for personal or public use, including online broadcasting, tournaments, and other purposes. Go to the Club Fantastic website for more information.
  • The MAD library and FFmpeg codecs when built with our code use the GPL license.
  • This software is based in part on the work of the Independent JPEG Group.
  • Check the Docs/Licenses.txt for the licenses of the used libraries.

Credits

ITGmania Team

  • Martin Natano (natano)
  • teejusb

Contributors

S
Languages
C++ 85.7%
Lua 4.3%
C 4.3%
Rich Text Format 2.3%
CMake 1.1%
Other 2%