Skip to content
Snippets Groups Projects
Commit 9b2c8f28 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

New method of copyToBuffer to grab all incoming data at once into token...

New method of copyToBuffer to grab all incoming data at once into token buffer. Pitch detection is performed in separate thread, launched in constructor, and probing for available data in the buffer.
In summary:
- input callback is less expensive, it just copies data
- transforming data to float is performed out of callback, in the thread
- no need to invoke thread every data incoming
- input forwarding seems to work even with PulseAudio
- buffer if bigger (16k), so chopping sound phenomenon disappeared
parent cb849099
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment