Topic: Slightly bigger latency on Linux
Hi guys,
I have recently noticed that Pianoteq 5 on Linux has slightly bigger latency than on Windows.
Both of the OS are installed on the same hardware(using onboard soundcard) and detailed condition was below.
Linux (tick=1000HZ, turned off dynamic tick, Changed Pinoteq 5 process's schedule policy to SCHED_FIFO with priority 90):
output = alsa hw:0 (which provides direct memory accessing to the sound card, so should be the best way to reduce the latency)
Sample rate = 44100 Hz
Audio buffer size = 512 samples (11.6 ms)
Windows 7:
output = ASIO4ALL v2
Sample rate = 44100 Hz
Audio buffer size = 512 samples (11.6 ms)
I compared the latency by connecting my Casio keyboard to the PC using USB interface and listening the sound coming from the PC and the keyboard's internal sound at the same time.
The result was that the sound on Windows was like there was one sound source coming from both speaker. But, on Linux it sounded like there was an echo effect because of the latency.
I haven't tried rt Linux kernel, as I thought it wouldn't give much difference.
I am not sure whether I am the only one who is having this issue and I am just curious whether the difference comes from Pianoteq Linux binary itself due to the compiler difference or comes from others such as USB midi driver or alsa direct access API.