Sample rate

Started by XMPlay_User,

XMPlay_User

Hi Ian )
Please , add sampling rate upt to 960 KHz , because now available DAC whitch support sampling rate 192/384/768 KHz

Ian @ un4seen

Please note that the "Sample rate" box allows you to enter any rate you want (it doesn't have to be one of the presets).

XMPlay_User

#2
Yes , but you can try what be when you set for example this 960000 and do try play and you can see waht ve , plugin xmp-sid.dll I think , what resampling need doafter admission sound to sound engine XMPlay , because more plugins work with errors on very high samplerates ) and not only your plugins , also more other plugins , that's why I offer do upsampling without making the plugin work on very high samplerate )
Proof https://disk.yandex.ru/i/eXHEYVfZbmmDjg


[attachment deleted by admin]

Ian @ un4seen

XMPlay will resample to the specified rate if it isn't the file's native rate and the "Apply sample rate to all file formats" option is enabled. The SID format doesn't have a native rate, so a SID plugin would generally use the specified rate. Apparently, the XMP-SID plugin doesn't expect/like a rate as high as 960000Hz. To be fair, 960000Hz is a ridiculous rate to use!

XMPlay_User

#4
Typicaly I use 48000 Hz , because I use SB Audigy RX and I think what 48KHz this is best mode for this sound card , but I hear about sound cards with more frequency 384 / 768 KHz , and I do try what be if this use , and detect what not all plugins work correctly ) that's why  I offered you make this modes independent of plugins I mean that player for plugins can do limit 48 or 96KHz  , but further upsampling need do in player ) because lot plugins was writed for WinAMP , and in old times and Windows 95 / 98 was standard only 44100 / 48000 Hz ) and the authors did not expect that will be sound cards with 384 / 768 KHz )  because in this years sizes of HDD was smaller and people thinked as save music in smaller size , for example MP3 / WMA and simlar formats , but now that sizes storage big and lot requests to lossless in HiRes or Ultra HiRes 32 bit and simlar , this can break logic old plugins )

Ian @ un4seen

Winamp plugins don't use the sample format set in XMPlay's "Output" options. They have their own sample format options (if needed). Note that Winamp itself doesn't have any output format options.

Even if the output device is set to a crazy rate (in Windows' Sound control panel), there's no need to set XMPlay to the same rate. Windows will upsample the XMPlay output.

XMPlay_User

#6
Yes , this so , but if we want play UltraRes files with samplerate 192 / 352 / 384 / 704 / 768 / 960 KHz , we can want output this files without downsample to 44,1 or 48 or 96 KHz in player , becaue this will double resampling , firstly to down and next to upper , and this not is good ) that's why I offer add list plugins whitch we can limited samplerate ) for example all work on 192 / 24 , but for xmp-sid.dll limit to 48 KHz )

I this see so , in this menu where buttons About and config , need addi button limit samplerate , and get use opportunity do limit each plugin on samplerate  if this need , and next upsample do using the player just like it so done  for MP3 / Wave files )

[attachment deleted by admin]

Ian @ un4seen

XMPlay won't downsample (or upsample) if you leave the "Apply sample rate to all file formats" option disabled.

XMPlay_User

#8
Yes , but then this functional not have sens  , as I think , this option for high quality resampling ) , but must be available opportunity will disable for some plugins for which need limit samplerate )

Diffirent my and your offer is what you offer do disable global level resampling in XMPlay , I offer add do disable localy level , same as you do select formats , I can choice whitch  format will play whitch plugin , for example , I can select will play MP3 via in_mp3.dll or via xmp_ffmpeg.dll  , also I offer do with settings for resample )

XMPlay_User

#9
Moreover , your offer , pointless I'm tested as you tiped and result https://disk.yandex.ru/i/g-e-E6FxQLnmJA , my offer this completely eliminates because if do set limit samplerate per plugin , this situation not will be. beacause problemed plugin will limited to 48000 or 44100 Hz )
I offer make plugins limit list and if we add plugin to this list , then always limite samplerate set as 48000 Hz or as 44100 Hz for this separate plugin )

Ian @ un4seen

There is no benefit in playing SID files (or indeed any file) at such a high rate (960000Hz). Doing so will just use more CPU for no audible difference.

If you want to play SID files at 48000Hz, then you should set the "Sample rate" to that in the "Output" options. Your "UltraRes" files (and any other files with a defined sample rate) won't be affected by that if you leave the "Apply sample rate to all file formats" option disabled. You can see XMPlay's actual output rate in the "General" info window during playback.

XMPlay_User

#11
I understand this , however I say about what at this time sampling rate work then what if I set samplerate and independed set I'm what this will apply to all formats or not set checkbox , we can get bugs as I showed before , If do forced lists for sepated plugins similar to how there are blacklists with set in this lists name dll libraty and frequancy only for work with this  library with limits , we can avoid same bugs in future ) for example all works on 192/24 stereo , but only plugin x.dll Name_X not work correctly if frequency set as 192000 Hz and if we will set 48000 Hz for this problem plugin , so independed what set in samplerate , player with plugin x.dll will work only on 48000 Hz ) this  willhelp solve problem with bad written plugins or with plugins based on old limitations )