randomgen / stinkee

Reverse-engineered C++ library to control Scentee diffusers.
MIT License
0 stars 2 forks source link

Linux port #3

Closed randomgen closed 9 years ago

randomgen commented 9 years ago

The code builds and runs on Linux (Ubuntu 14.04 LTS), but the generated signal does not activate the Scentee diffuser.

Related commits:

randomgen commented 9 years ago

I have improved the audio signal generated with PortAudio and ALSA on Linux, but problems remain. I tried most solutions described in the documentation.

Low latency issues seem common with this software combination:

Of particular importance is PaAlsa_EnableRealtimeScheduling, which allows ALSA to run at a high priority to prevent ordinary processes on the system from preempting audio playback. Without this, low latency audio playback will be irregular and will contain frequent drop-outs.

Yes, I tried the ALSA extensions and to adjust the process priority with nice.