Guest User

Untitled

a guest
Apr 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. diff --git a/libaudio-msm7x30/AudioHardware.cpp b/libaudio-msm7x30/AudioHardware.cpp
  2. index e0f8c60..9c2e5de 100644
  3. --- a/libaudio-msm7x30/AudioHardware.cpp
  4. +++ b/libaudio-msm7x30/AudioHardware.cpp
  5. @@ -737,16 +737,15 @@ AudioStreamOut* AudioHardware::openOutputStream(uint32_t devices, int *format,
  6.  
  7. LOGD("AudioHardware::openOutputStream");
  8.  
  9. - /* only one output stream allowed */
  10. + AudioStreamOutMSM72xx* out;
  11. if (mOutput) {
  12. - if (status)
  13. - *status = INVALID_OPERATION;
  14. -
  15. - return 0;
  16. + /* only one output stream allowed */
  17. + out = mOutput;
  18. + } else {
  19. + /* create new output stream */
  20. + out = new AudioStreamOutMSM72xx();
  21. }
  22.  
  23. - /* create new output stream */
  24. - AudioStreamOutMSM72xx* out = new AudioStreamOutMSM72xx();
  25. status_t lStatus = out->set(this, devices, format, channels, sampleRate);
  26. if (status)
  27. *status = lStatus;
Add Comment
Please, Sign In to add comment