Files
itgmania212121/src
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-01-25 23:53:44 -08:00
2023-04-21 22:13:41 +02:00
2025-04-11 09:04:36 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-09-03 20:50:48 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2019-06-22 12:35:38 -07:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2025-03-03 23:25:32 -08:00
2025-05-23 19:47:21 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2013-05-05 09:34:57 -04:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2024-08-26 10:52:19 -07:00
2024-08-26 10:52:19 -07:00
2025-04-23 09:29:29 -07:00
2023-04-21 22:13:41 +02:00
2011-05-23 20:27:31 -04:00
2023-04-20 11:21:29 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-09-03 20:50:48 -07:00
2023-04-21 22:13:41 +02:00
2025-03-22 12:02:04 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2023-02-02 11:54:17 -08:00
2024-10-08 20:52:52 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2025-02-11 19:39:03 -08:00
2024-03-06 16:10:21 -08:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2021-08-31 18:25:09 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-19 19:31:40 +02:00
2023-02-02 11:54:17 -08:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2025-05-10 09:27:05 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2025-03-26 08:38:36 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-20 11:21:29 +02:00
2024-10-08 20:52:52 -07:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2025-03-02 11:41:43 -08:00
2023-04-21 22:13:41 +02:00
2019-06-22 12:35:38 -07:00
2024-10-08 20:52:52 -07:00
2025-04-23 01:59:00 -07:00
2023-04-21 22:13:41 +02:00
2024-10-08 20:52:52 -07:00
2023-04-21 22:13:41 +02:00
2024-12-04 09:41:26 -08:00
2025-04-29 21:42:37 -07:00
2025-04-29 21:42:37 -07:00
2024-09-03 20:50:48 -07:00
2023-04-21 22:13:41 +02:00
2025-04-22 23:22:56 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-02 21:40:33 -05:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-19 19:31:40 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-08-26 10:52:19 -07:00
2023-04-21 22:13:41 +02:00
2023-04-19 19:31:40 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-19 19:31:40 +02:00
2023-04-19 19:31:40 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2025-04-23 01:59:00 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-06-14 13:15:54 -04:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2022-06-08 20:12:57 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-19 19:31:40 +02:00
2011-10-02 21:40:33 -05:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2011-10-08 13:01:28 -05:00
2025-04-26 00:10:28 -07:00
2011-10-02 21:40:33 -05:00
2023-04-19 19:31:40 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2025-02-11 19:39:03 -08:00
2011-10-02 21:40:33 -05:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2022-06-10 19:33:23 +02:00
2022-06-10 19:33:23 +02:00
2023-04-21 22:13:41 +02:00
2022-03-31 12:06:18 -07:00
2025-04-23 01:59:00 -07:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2023-04-21 22:13:41 +02:00
2024-10-01 01:46:26 -07:00