Stereo Tool https://forums.stereotool.com/ |
|
Stereo Tool 9.71 BETA https://forums.stereotool.com/viewtopic.php?t=30748 |
Page 12 of 17 |
Author: | hvz [ Tue Aug 17, 2021 7:19 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Quote: Quote:
The old 1990's game Quake 3, which was open sourced at some point, had some very weird code in its source that was estimating 1 / sqrt of a value, using an extremely weird trick. This is that code, including the "what the fuck" comment: Code: float Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; // evil floating point bit level hacking i = 0x5f3759df - ( i >> 1 ); // what the fuck? y = * ( float * ) &i; y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration // y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed return y; }A 2-parter YouTube-series of someone who tried to find out who invented this can be found here: https://www.youtube.com/watch?v=uCv5VRf8op0 Intel, AMD and ARM have all included an instruction in their CPU's for 1 / sqrt(x), so there's no need to use this weird code anymore - but it seems to be what those instructions do internally. |
Author: | \_/ [ Tue Aug 17, 2021 7:41 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Thanks for the detailed explanation. ![]() So it's actually x * inv_sqrt(x) without the slow division. That makes much more sense. |
Author: | EliteData [ Tue Aug 17, 2021 7:53 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Quote: Quote: Quote: Hi, I've just fixed the MPX spectrum drawing. Something broke when I fixed another issue (disabled waveforms were enabled again after restarting). About input 2: I don't see any problems with it here, so I need more info. Is this a new problem, do you know if it occurred with older versions? And does the same sound card work if you select it as the first input sound card? this is using 64bit beta 38 stand alone. the issue did not occur with beta 37. i can record a video capture and show you later on after work, its EST time here. 37 operates perfectly with my current settings. (full STS file attached) 38 has the issue i described using the same STS file. the program has "admin" rights for execution. windows version 64 bit, 21H1, build 19043.1165, fully updated. generally, the buffer for input 2 rapidly depletes despite what setting for input/output (overrule block size = no or suggested or blocksize makes no difference) edit: i cannot attach the STS file as the size is too large so here is the link from my domain. http://scpdny.com/PC.sts |
Author: | Bojcha [ Wed Aug 18, 2021 1:31 am ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
O something different on input2? Till now, it never be usefull for me since it will eventually overflow buffer on input1, slowly but eventually. Will try b038.. edit: no, same. |
Author: | EliteData [ Thu Aug 19, 2021 4:08 pm ] | ||
Post subject: | Re: Stereo Tool 9.71 BETA | ||
the issue i posted about has been resolved by turning off "give exclusive mode applications priority" this was causing the sound card for input 1 to be prioritized over the sound card for input 2 which resulted in the buffer for input 2 to rapidly deplete.
|
Author: | hvz [ Thu Aug 19, 2021 6:32 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Quote:
the issue i posted about has been resolved by turning off "give exclusive mode applications priority"
Hm.. that doesn't really make sense if it's not the same sound card I think? Anyway, I have seen several (mainly niche) sound cards that don't appear to implement these settings very well.
this was causing the sound card for input 1 to be prioritized over the sound card for input 2 which resulted in the buffer for input 2 to rapidly deplete. |
Author: | EliteData [ Thu Aug 19, 2021 6:46 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Quote: Quote:
the issue i posted about has been resolved by turning off "give exclusive mode applications priority"
Hm.. that doesn't really make sense if it's not the same sound card I think? Anyway, I have seen several (mainly niche) sound cards that don't appear to implement these settings very well.
this was causing the sound card for input 1 to be prioritized over the sound card for input 2 which resulted in the buffer for input 2 to rapidly deplete. if one sound card has priority over another sound card. think of it similar to process priority level for an executable file. giving exclusive mode to applications with priority to a sound card enables the application to take control of the sound card and significantly reduces the latency for the application using the sound card. giving exclusive mode to applications without priority allows the application to take control of the sound card and will reduce latency to the application using the sound card but not as significantly as priority mode will reduce latency. enabling exclusive mode for the sound card allows only one application at a time to access the sound card. priority mode for two sound cards being used on one application will "battle" each other for priority, the first sound card to receive priority will be the one that gets priority, the second sound card will not have priority despite having priority enabled. this explains why the buffer depletion would change from one sound card to the other if i switched sound card ordering. apparently, input 1 is enabled first before input 2 on Stereo Tool which results in input 1 taking the first priority. not sure if any of this makes sense to you. |
Author: | aTom [ Fri Aug 20, 2021 7:19 pm ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Dequantizer seems broken in beta 038 and 039. (Win10, 64bit, standalone) When turns ON, all sounds blocked after this filter. |
Author: | hvz [ Sat Aug 21, 2021 1:39 am ] |
Post subject: | Re: Stereo Tool 9.71 BETA |
Quote:
Dequantizer seems broken in beta 038 and 039. (Win10, 64bit, standalone)
Found it, it was caused by the sqrt(x) = x * 1 / sqrt(x) issue - it went wrong when x is 0. Oops...When turns ON, all sounds blocked after this filter. I was actually just running a release build, but this bug is a bit too scary (and might affect different CPU's differently) - so there'll be one more beta before release. Edit: It seems that... 1 / (1 / sqrt(x)) is both faster and should solve this issue. Testing now..... This stuff is weird ![]() |
Author: | dave@daveball.net [ Sat Aug 21, 2021 2:53 am ] | ||
Post subject: | Re: Stereo Tool 9.71 BETA | ||
UPDATE: Duplicate bug - turning off the Dequantizer fixes this issue. Windows 10 64-Bit Winamp v5.666 Build 3516 ST 9.71 Beta039 (Winamp Plug-In) Error GUI: Saw NAN. This is not a serious problem but it should not happen. Screenshot attached. Error repeats immediately - no GUI updates in the processing meters and no sound. GUI updates in the INPUT meters. Video: AMD Radeon R9 200 Series CPU: Intel i7-5820K RAM: 40GB Drivers and updates for Windows and AMD are current.
|
Page 12 of 17 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |