From 48f3a84206438fd3cb82670afbce8ea868b8c478 Mon Sep 17 00:00:00 2001 From: Sotonye Atemie Date: Thu, 10 Jul 2025 05:55:45 -0400 Subject: [PATCH] Set the sample rate for MP3 exports (#7998) Sets the MP3 export sample rate to that of the engine's rate. Co-authored-by: Dalton Messmer --- src/core/audio/AudioFileMP3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/audio/AudioFileMP3.cpp b/src/core/audio/AudioFileMP3.cpp index 9cd8b43bb..ea02ea0d2 100644 --- a/src/core/audio/AudioFileMP3.cpp +++ b/src/core/audio/AudioFileMP3.cpp @@ -117,6 +117,7 @@ bool AudioFileMP3::initEncoder() lame_set_VBR(m_lame, vbr_off); lame_set_brate(m_lame, bitRate); + lame_set_in_samplerate(m_lame, static_cast(getOutputSettings().getSampleRate())); // Add a comment id3tag_init(m_lame);