• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/libaudio


Commit MetaInfo

Revision8900acb725ce00c691266e1c9f51adc7cfa7429e (tree)
Zeit2012-02-22 16:03:29
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

fix audio recording

Ändern Zusammenfassung

Diff

--- a/AudioHardware.cpp
+++ b/AudioHardware.cpp
@@ -1043,9 +1043,8 @@ status_t AudioHardware::AudioStreamInALSA::set(
10431043 return BAD_VALUE;
10441044 }
10451045
1046- if (pChannels == 0 || (*pChannels != AudioSystem::CHANNEL_IN_MONO &&
1047- *pChannels != AudioSystem::CHANNEL_IN_STEREO)) {
1048- *pChannels = AUDIO_HW_IN_CHANNELS;
1046+ if (pChannels == 0 || ( *pChannels != AudioSystem::CHANNEL_IN_STEREO)) {
1047+ *pChannels = AudioSystem::CHANNEL_IN_STEREO ;
10491048 return BAD_VALUE;
10501049 }
10511050