View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000439 | OpenMPT | Plugins / VST | public | 2013-10-04 08:15 | 2013-10-14 03:56 |
Reporter | SpatialAnomaly | Assigned To | manx | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x64 | OS | Windows | OS Version | 8 |
Product Version | OpenMPT 1.22.05.00 (upgrade first) | ||||
Target Version | OpenMPT 1.22.06.00 (upgrade first) | Fixed in Version | OpenMPT 1.22.06.00 (upgrade first) | ||
Summary | 0000439: Sample Rate and other Mixer Settings are not explicity set from the Tracker Settings on the SndFile object during initialization | ||||
Description | The CSoundFile::m_MixerSettings object is using default values instead of the ones specified in TrackerSettings::m_MixerSettings. This is only a problem when using a sample rate <> 44100 as VSTIs are initialized using the default sample rate of 44100 instead of the one specified in the Tracker Settings used for playback. This can cause some VSTIs to sound out of tune (e.g. ZynAddSubSynFX VST with a String Samples) when using sample rates other than 44100 in sound card tab of the settings dialog. | ||||
Steps To Reproduce |
| ||||
Additional Information | From inspecting/debugging the code I've confirmed that the sample rate in the CSoundFile::m_MixerSettings object is always 44100 regardless of the sound card settings in the tracker (i.e. it is never updated to 48000). Thus when the VST plugins are initialized they will always use the 44100 sample rate. POTENTIAL FIX: i.e. add the following line near the end of the constructor:
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Has the bug occurred in previous versions? | |||||
Tested code revision (in case you know it) | |||||
I cannot confirm the problem; However, as far as I can tell from other plugins, OpenMPT will set the correct sample rate for every plugin (in OnResume) after it has been changed. There are plugins which have trouble with that, the version of Zyn that I tried doesn't seem to have the problem. Basically, the same problem should occour when loading the plugin e.g. into Renoise and changing the sample rate there. |
|
I can reproduce the problem with your provided testcase. |
|
Thanks guys, for looking at this so quickly. Manx, the workaround you suggests seems very reasonable to me. Really appreciate all you are doing to keep making this great software even better. |
|
Guess we can close this one then? |
|
Yes, feel free to mark it closed. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-04 08:15 | SpatialAnomaly | New Issue | |
2013-10-04 08:15 | SpatialAnomaly | File Added: Sample Rate Test.zip | |
2013-10-04 19:15 | Saga Musix | Note Added: 0001342 | |
2013-10-04 20:33 | manx | Note Added: 0001343 | |
2013-10-07 04:00 | SpatialAnomaly | Note Added: 0001344 | |
2013-10-09 10:13 | Saga Musix | Note Added: 0001346 | |
2013-10-11 10:53 | SpatialAnomaly | Note Added: 0001347 | |
2013-10-11 10:54 | Saga Musix | Status | new => resolved |
2013-10-11 10:54 | Saga Musix | Resolution | open => fixed |
2013-10-11 10:54 | Saga Musix | Fixed in Version | => OpenMPT 1.22.06.00 (upgrade first) |
2013-10-11 10:54 | Saga Musix | Target Version | => OpenMPT 1.22.06.00 (upgrade first) |
2013-10-11 16:29 | Saga Musix | Assigned To | => manx |
2016-11-20 17:48 | Saga Musix | Category | VST => Plugins (VST) |
2016-11-20 17:48 | Saga Musix | Category | Plugins (VST) => Plugins / VST |