Skip to content

Conversation

zeehio
Copy link
Contributor

@zeehio zeehio commented Oct 9, 2017

Rewrite the PortAudio engine so it works closely to the audio model in mimic.
It fixes the streaming capabilities* of mimic when using PortAudio.

Ported from MycroftAI/mimic1#137

* In case you didn't know, mimic is able to play as soon as samples start being generated. A custom function can be written (example here) to get a direct pointer to the sample data. The linked example plays the wave file, but it could simply memcpy it to a buffer if desired... That function is called right after each frame is synthesized (e.g. for clustergen voices it's called here)

@codecov-io
Copy link

codecov-io commented Oct 9, 2017

Codecov Report

Merging #10 into development will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development      #10      +/-   ##
===============================================
- Coverage        17.82%   17.82%   -0.01%     
===============================================
  Files               80       80              
  Lines             8874     8876       +2     
===============================================
  Hits              1582     1582              
- Misses            7292     7294       +2
Impacted Files Coverage Δ
src/audio/au_streaming.c 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2b9655...16190cc. Read the comment docs.

@zeehio zeehio force-pushed the fix_portaudio_streaming branch from 9cb308c to 16190cc Compare October 10, 2017 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants