diff options
| author | 2023-09-18 09:30:56 -0400 | |
|---|---|---|
| committer | 2023-09-18 09:30:56 -0400 | |
| commit | d6cf54dd2f182a2621038047f10f29e5b8a7a7c1 (patch) | |
| tree | a8a68150d0128d6872ba6701b1dbcd321cd7e010 /src/audio_core/renderer/command | |
| parent | Merge pull request #11529 from lat9nq/no-oob-names-pls (diff) | |
| parent | Do not consider voice commands in time estimation, fix adpcm estimate (diff) | |
| download | yuzu-d6cf54dd2f182a2621038047f10f29e5b8a7a7c1.tar.gz yuzu-d6cf54dd2f182a2621038047f10f29e5b8a7a7c1.tar.xz yuzu-d6cf54dd2f182a2621038047f10f29e5b8a7a7c1.zip | |
Merge pull request #11520 from Kelebek1/estimated_time
Do not consider voice commands in time estimation, fix adpcm estimate
Diffstat (limited to 'src/audio_core/renderer/command')
| -rw-r--r-- | src/audio_core/renderer/command/command_processing_time_estimator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/renderer/command/command_processing_time_estimator.cpp b/src/audio_core/renderer/command/command_processing_time_estimator.cpp index a48a016b1..0f7aff1b4 100644 --- a/src/audio_core/renderer/command/command_processing_time_estimator.cpp +++ b/src/audio_core/renderer/command/command_processing_time_estimator.cpp | |||
| @@ -27,12 +27,12 @@ u32 CommandProcessingTimeEstimatorVersion1::Estimate( | |||
| 27 | 27 | ||
| 28 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( | 28 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( |
| 29 | const AdpcmDataSourceVersion1Command& command) const { | 29 | const AdpcmDataSourceVersion1Command& command) const { |
| 30 | return static_cast<u32>(command.pitch * 0.25f * 1.2f); | 30 | return static_cast<u32>(command.pitch * 0.46f * 1.2f); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( | 33 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( |
| 34 | const AdpcmDataSourceVersion2Command& command) const { | 34 | const AdpcmDataSourceVersion2Command& command) const { |
| 35 | return static_cast<u32>(command.pitch * 0.25f * 1.2f); | 35 | return static_cast<u32>(command.pitch * 0.46f * 1.2f); |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( | 38 | u32 CommandProcessingTimeEstimatorVersion1::Estimate( |