Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to monitor local recording event #55

Closed
Cypresslin opened this issue Jul 6, 2016 · 1 comment · Fixed by #64
Closed

Need to monitor local recording event #55

Cypresslin opened this issue Jul 6, 2016 · 1 comment · Fixed by #64
Assignees
Milestone

Comments

@Cypresslin
Copy link
Owner

Need to monitor local recording event.

@Cypresslin Cypresslin added this to the WK28 milestone Jul 7, 2016
@Cypresslin Cypresslin self-assigned this Jul 7, 2016
@Cypresslin
Copy link
Owner Author

Cypresslin commented Jul 7, 2016

This can be done by subscribing to PulseAudio, with command pactl subscribe, check for source-output event.

Sample output:

phablet@ubuntu-phablet:~$ pactl subscribe

Before start recording

Event 'new' on client #49
Event 'remove' on client #49
Event 'new' on client #50
Event 'remove' on client #50
Event 'new' on client #51
Event 'change' on client #51
Event 'new' on client #52
Event 'change' on client #52

Start recording

Event 'new' on source-output #7
Event 'change' on source-output #7
Event 'change' on source-output #7
Event 'remove' on source-output #7
Event 'remove' on client #52
Event 'remove' on client #51

Stop recording

Event 'remove' on client #16
Event 'remove' on client #17
Event 'remove' on source-output #0
Event 'remove' on client #21
Event 'remove' on client #20
Event 'remove' on source-output #2
Event 'remove' on client #29
Event 'remove' on client #28
Event 'remove' on source-output #3
Event 'change' on source #1
Event 'remove' on client #33
Event 'remove' on client #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant