Paul Donald

Results 964 comments of Paul Donald

OK - well, I did some profiling. It turns out that PTP uses almost no CPU 😄 It appears to be the the reader thread which eats up CPU. So,...

OK - simple fix. Change: ```python def reader(self, conn): try: while True: if conn.poll(): ``` to ```python def reader(self, conn): try: while True: if conn.poll(None): ```

I'll (force) push this fix and some other updates out to my ptp branch.

Try the new picks. I'm streaming audio with PTP here: ![Screenshot 2021-08-04 at 17 08 55](https://user-images.githubusercontent.com/647633/128206306-e0df2ea6-f846-4616-9991-cbebb5456064.png)

It seems that Python 3.7 might be necessary for PTP. Example: ```python def time_monotonic_ns(self): # From PEP 564: Linux 1MHz. Win 10MHz. my macOS 88ns, ~11.3MHz # The following if/else...

While I agree that's true, it's still a common baseline for many OSes that people might be on. 3.6 is still solid. I guess it's a balance of convenience vs...

A quick search suggests this is a way around the problem: https://stackoverflow.com/a/12524906

I ended up doing this in the head of the PTP module: ```py if sys.hexversion >= 0x3070000: # Needs Python >= 3.7 - define only once at startup. def time_monotonic_ns():...

https://www.microsoft.com/en-us/account/authenticator

https://microsoftedge.microsoft.com/addons/detail/authenticator/ocglkepbibnalbgmbachknglpdipeoio