stsaz / fmedia

fast audio player/recorder/converter
BSD 2-Clause "Simplified" License
217 stars 21 forks source link

CPU usage on run as background process #79

Closed FellowCode closed 2 years ago

FellowCode commented 2 years ago

Hi, i try use fmedia as subprocess for python. It uses a lot of cpu resources, ~15% on i7. It seems that fmedia uses a lot of resources when it does not have access to the console. For example, when it is started by a background independent process.

FellowCode commented 2 years ago

when run fmedia from console it use less then 1% cpu

FellowCode commented 2 years ago

i use fmedia for record sound

stsaz commented 2 years ago

Hi! By default fmedia waits for user input via stdin descriptor. Please check if --notui switch solves the issue.

FellowCode commented 2 years ago

Thanks, it works