- int ret = sound_manager_release_focus(g_stream_info_h, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ int ret = sound_manager_release_focus(g_stream_info_h, (sound_stream_focus_mask_e)(SOUND_STREAM_FOCUS_FOR_PLAYBACK | SOUND_STREAM_FOCUS_FOR_RECORDING), NULL);
if (SOUND_MANAGER_ERROR_NONE != ret) {
if (SOUND_MANAGER_ERROR_NONE != ret) {
- LOGW("Fail to release focus. ret : %d", ret);
+ LOGW("Fail to release playback or recording focus. ret : %d", ret);