diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo.verdejo@collabora.co.uk> | 2011-10-18 11:31:19 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo.verdejo@collabora.co.uk> | 2011-10-18 11:31:19 -0300 |
commit | ea14a7fe25067d40d439dee0c83b4bdccab16a9d (patch) | |
tree | e296210f77ccb52dfc754b413c20c740c4a8981e | |
parent | d9fa13dbdd5c8d2d0b3aabeb59e90ebdb9b8244b (diff) |
Avoid lying. Don't print out message if we are not performing the action
-rw-r--r-- | sink/audioflingersink/audioflinger_wrapper.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sink/audioflingersink/audioflinger_wrapper.cpp b/sink/audioflingersink/audioflinger_wrapper.cpp index b9a1401..dae199a 100644 --- a/sink/audioflingersink/audioflinger_wrapper.cpp +++ b/sink/audioflingersink/audioflinger_wrapper.cpp @@ -265,11 +265,10 @@ audioflinger_device_mute (AudioFlingerDeviceHandle handle, int mute) if (handle == NULL || AUDIO_FLINGER_DEVICE (handle)->init == false) return; - LOGD ("handle : %p Mute Device\n", handle); - if (AUDIO_FLINGER_DEVICE (handle)->audio_sink_specified) { // do nothing here, because the volume/mute is set in media service layer } else if (AUDIO_FLINGER_DEVICE_TRACK (handle)) { + LOGD ("handle : %p Mute Device\n", handle); AUDIO_FLINGER_DEVICE_TRACK (handle)->mute ((bool) mute); } } @@ -297,12 +296,11 @@ audioflinger_device_set_volume (AudioFlingerDeviceHandle handle, float left, if (handle == NULL || AUDIO_FLINGER_DEVICE (handle)->init == false) return; - LOGD ("handle : %p Set volume Device %f,%f\n", handle, left, right); - if (AUDIO_FLINGER_DEVICE (handle)->audio_sink_specified) { // do nothing here, because the volume/mute is set in media service layer return; } else if (AUDIO_FLINGER_DEVICE_TRACK (handle)) { + LOGD ("handle : %p Set volume Device %f,%f\n", handle, left, right); AUDIO_FLINGER_DEVICE_TRACK (handle)->setVolume (left, right); } } |