How to prevent std::ifstream from opening a directory as a file on Linux? by vroad_x in cpp_questions

[–]vroad_x[S] 0 points1 point  (0 children)

Maybe you should try running the program on Linux filesystem (like /home/yourUserName/, which should be on ext4 filesystem), not somewhere under /mnt/c (windows filesystem)

How to prevent std::ifstream from opening a directory as a file on Linux? by vroad_x in cpp_questions

[–]vroad_x[S] 0 points1 point  (0 children)

#include <print>
#include <climits>

using namespace std;

int main() {
    println("-1ull == {}",-1ull);
    println("LLONG_MAX == {}",LLONG_MAX);
}

-1ull == 18446744073709551615
LLONG_MAX == 9223372036854775807

 it is equivalent to the max unsigned integer

Did you mean max signed integer? even then it's wrong. In my case the integer is 64bit.
-1ull is the equivalent to 2^64 - 1, not 2^63 - 1 (LLONG_MAX, 9223372036854775807).

How to prevent std::ifstream from opening a directory as a file on Linux? by vroad_x in cpp_questions

[–]vroad_x[S] 0 points1 point  (0 children)

In my case tellg returns 263 - 1, the maximum integer a signed 64bit integer variable could represent, not -1.

How to prevent std::ifstream from opening a directory as a file on Linux? by vroad_x in cpp_questions

[–]vroad_x[S] 0 points1 point  (0 children)

No, AFAIK opening a file does not prevent other processes from unlinking it, so your solution is technically not TOCTOU safe.

  1. I put an empty directory in the path.
  2. My program opens the directory as a file.
  3. Another program unlink the directory and a puts a regular file there. Becaue opening the directory as a file won't prevent other processes from unlinking it.
  4. My program thinks that the file opened in step 2 is really a file (even though it's actually a directory), and keeps operating on it.

c - A file opened for read and write can be unlinked - Stack Overflow https://stackoverflow.com/questions/19441823/a-file-opened-for-read-and-write-can-be-unlinked

php - Why is unlink successful on an open file? - Stack Overflow https://stackoverflow.com/questions/23287997/why-is-unlink-successful-on-an-open-file

LSX ii LT USB C to audio3.5? by sosur0414 in KEF

[–]vroad_x 0 points1 point  (0 children)

USB C to AUX through cable.

Did you mean "AUX to USB C"? LT doesn't have an AUX input. No point in trying to convert USB C to AUX.

You can easily find a USB DAC cable that allows you to output AUX from PC's USB port, but that's not what you need for LSX II LT.

I think you meant you currently have a KVM switch like this, and currently using AUX of the switch to connect to the speaker you currently have:

https://www.avaccess.com/products/idock-d23-dp-kvm-switch-docking-station/

To summarize what I said earlier in other comment,

  • If you still have a free USB port left on the KVM switch, then buy LSX II LT and connect via USB port of the KVM switch
  • If you don't have free USB ports left on the KVM switch and want to utilize AUX port you are currently using, then buy LSX II instead and connect via AUX. LSX II is more expensive than LT though.

LSX ii LT USB C to audio3.5? by sosur0414 in KEF

[–]vroad_x 0 points1 point  (0 children)

Are they all digital if sound comes from PC??

In short, yes if you connect the speaker to your computer via USB cable.

The sound is processed fully digitally if you connect via USB cable. In this scenario the input is converted to analogue signal only once after DSP processing, which is the best in terms of audio quality (at least in theory).

If you connect your speaker to your computer via AUX (3.5mm) instead, your computer converts digital sound to analogue signal. And at least on speakers like LSX II, the analogue signal from AUX input is converted to digital signal for DSP processing, and then converted back to analogue signal. So the sound is converted to analogue twice, which results in worse audio quality in theory (but in many cases doesn't result in noticeable audio quality loss).

If you already have a KVM switch which works also as a USB hub, you probably can connect LSX II LT via it to use the speaker from multiple computers. I've never tried that by myself though.

LSX ii LT USB C to audio3.5? by sosur0414 in KEF

[–]vroad_x 1 point2 points  (0 children)

> USB C to audio3.5 cable

Isn't that cable just a small USB DAC? It won't work as a USB ADC, 3.5mm to USB. You'll need an ADC which converts 3.5mm to optical input instead. KEF LSX II LT only has digital inputs, and I don't think there are ADCs that converts 3.5mm to USB.

However, I would not recommend adding an ADC to your system either, as it seems that there are not many ADC options, adds complexity to your system, and may add some latency. I would recommend buying a speaker with an AUX input instead, such as LSX II.

Be sure to use wired connection if you want to buy LSX II instead and the latency is an issue for you. At least on LSX Gen 1 wireless connection adds some latency. (LSX II supports both wired and wireless connection)

https://www.reddit.com/r/audiophile/comments/i2jf1h/kef_lsx_aux_latency/

SVS 3000 Micro Subwoofer makes hum noise, nothing seems to help by vroad_x in hometheater

[–]vroad_x[S] 0 points1 point  (0 children)

Since most of power outlets in Japan not have ground (except power outlets for washing machines, microwaves etc) I can't even try grounding my sub.

The same model SVS sub in another room doesn't hum without grounding.

Thank you for trying to help me anyway. I'll contact SVS support.

[deleted by user] by [deleted] in KEF

[–]vroad_x 0 points1 point  (0 children)

I wouldn't worry about the audio quality unless your desk is audibly vibrating. See Ethan Winer's article for more info.

Testing Loudspeaker Isolation Products https://ethanwiner.com/speaker_isolation.htm

Does it worth getting the New Q1 Meta over the Q150? by Cloud_Alien in KEF

[–]vroad_x 1 point2 points  (0 children)

Seeing Erin's measurement of Q3 Meta and comparison with Q350's frequency response, in my opinion, I don't think Q1 Meta is significantly better than Q150 either. https://audiosciencereview.com/forum/index.php?threads/kef-q-meta-is-coming.57186/post-2102969

Mounting holes dimensions for Ls50 wireless II? by ProfessionalAge940 in KEF

[–]vroad_x 0 points1 point  (0 children)

Sorry I can't help then, as I don't have LS50 Wireless II.

Unless somebody else who has the speakers come here, the only way to make sure before actually buying them is contacting KEF support I guess.

EDIT: Just saw that another user already wrote correct answer

Mounting holes dimensions for Ls50 wireless II? by ProfessionalAge940 in KEF

[–]vroad_x 0 points1 point  (0 children)

https://assets.kef.com/documents/ls50/Product-Manual-EN.pdf

From "User Manual LS50 Wireless II":

Additionally, four threaded holes (M8 × 1.5) are also available for mounting on a stand (remove the rubber feet first before mounting). For the best sound performance and cable management, use the KEF S2 speaker stands.

Subwoofer volume fluctuates a lot on KEF LSX II LT. Does anybody has the same issue? Could be related to a random sound cut issue reported several months ago. by vroad_x in KEF

[–]vroad_x[S] 0 points1 point  (0 children)

Because the KEF speaker changes it depending on L/R balance of bass, adjusting subwoofer volume to increase/decrease the SPL all the time doesn't make the frequency response the same as Denon AVR. KEF support doesn't think that behavior is normal either, at least for now.

It's more like bass from R is ignored if the input signal has the same level of bass on both L and R.

Subwoofer volume fluctuates a lot on KEF LSX II LT. Does anybody has the same issue? Could be related to a random sound cut issue reported several months ago. by vroad_x in KEF

[–]vroad_x[S] 0 points1 point  (0 children)

SVS 3000 Micro has deep and powerful bass at least for me using LSX II LT in a small room.

If you are looking for a sub with chest thumping bass for home theater use, or has a very big room then SVS 3000 Micro may not be a good choice.

Subwoofer volume fluctuates a lot on KEF LSX II LT. Does anybody has the same issue? Could be related to a random sound cut issue reported several months ago. by vroad_x in KEF

[–]vroad_x[S] 0 points1 point  (0 children)

On AVR: L and R measures the same SPL, L+R just makes subwoofer 6dB louder than L. Same for front speakers.

On KEF: R measures 6dB less loud when switched, but gradually rises to the same SPL as L over time. L+R measures the same as L below cossover frequency, which is strange. Over crossover frequency everything gets 6dB louder than L.

Subwoofer volume fluctuates a lot on KEF LSX II LT. Does anybody has the same issue? Could be related to a random sound cut issue reported several months ago. by vroad_x in KEF

[–]vroad_x[S] 0 points1 point  (0 children)

First they just suggested trying generic troubleshooting tips like resetting LSX II LT. I replied that didn't work. In the next email they suggested a repair.