flesniak / python-prodj-link

A python interface to Pioneer ProDJ Link
Apache License 2.0
141 stars 26 forks source link

Stuttering waveforms #31

Closed ReeceKetley closed 9 months ago

ReeceKetley commented 9 months ago

ice_video_20240218-223120.webm

I'm having issues with the waveform stuttering? (see above) I have adjusted buffer sizes as the application wouldn't even run

File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\threading.py", line 980, in _bootstrap_inner self.run() File "d:\Desktop\python-prodj-link-master\prodj\core\prodj.py", line 92, in run data, addr = self.status_sock.recvfrom(256) OSError: [WinError 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself

So I doubled the buffer size to fix this issue "self.status_sock.recvfrom(512)"

I have modified the GUI to fit inline with my style, but this issue was happening before I modified the GUI? I feel like it's a buffer issue or something, what I have noticed if I pause the track and move the platter backwards it still stutters forward then back.

Any help would be appreciated!

XDJ-1000's MK1's v1.13 TP-Link switch Windows 10

ReeceKetley commented 9 months ago

self.update_interval_ms

In waveform_gl was the issue. Changed to 10ms and it fixed the issue.