Skip to content

Commit

Permalink
Recreate accidentally lost recording function
Browse files Browse the repository at this point in the history
My ALSA state rework accidentally lost recording function, e.g. as
used by the Voice Notes application.  This commit recreates it.

I thought it might be possible for the default Media state - normally
MediaSpeaker - to handle both playback and recording.  But this
produces a nasty feedback loop, because Pulseaudio is by default
always looping the default source (i.e. the microphone) back to the
default sink (i.e. the speaker).  Therefore the default MediaSpeaker
can't have the microphone switch open, and therefore we need a
separate state, MediaRecording, to handle recording.

How then, does an application such as Voice Notes get the
MediaRecording state installed?  My guess is that it happens
automatically when any applications uses a QAudioInput, so long as all
the states have their Input/Output capabilities correctly defined.
  • Loading branch information
Neil Jerram committed Dec 29, 2012
1 parent 3a97643 commit 3421839
Show file tree
Hide file tree
Showing 3 changed files with 1,431 additions and 4 deletions.

0 comments on commit 3421839

Please sign in to comment.