Skip to content

Commit

Permalink
Fix issue 2416481: Support Voice Dialer over BT SCO.
Browse files Browse the repository at this point in the history
Make the choice of opening a direct output stream platform specific.

Change-Id: I63e5464a18aaa3600e9fed6cec0518ff1fad4dbd
  • Loading branch information
Eric Laurent committed Mar 16, 2010
1 parent 62c2f85 commit 68f279f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/hardware_legacy/AudioPolicyManagerBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,15 @@ class AudioPolicyManagerBase: public AudioPolicyInterface
// cached values are used by getDeviceForStrategy() if parameter fromCache is true.
// Must be called after checkOutputForAllStrategies()
void updateDeviceForStrategy();

// true if current platform requires a specific output to be opened for this particular
// set of parameters. This function is called by getOutput() and is implemented by platform
// specific audio policy manager.
virtual bool needsDirectOuput(AudioSystem::stream_type stream,
uint32_t samplingRate,
uint32_t format,
uint32_t channels,
AudioSystem::output_flags flags,
uint32_t device);
#ifdef AUDIO_POLICY_TEST
virtual bool threadLoop();
void exit();
Expand Down

0 comments on commit 68f279f

Please sign in to comment.