Hello,
I would like to play a tone using tone_player with receiver. To this I use sound manager api:
sound_manager_set_active_route((sound_route_type_e)SOUND_ROUTE_TYPE_OUT, SOUND_ROUTE_OUT_RECEIVER);
But it seems to doesn't work, the tone is playing with speaker. I checked current route using this code:
sound_route_e route; sound_manager_get_active_route(SOUND_ROUTE_TYPE_OUT, &route); switch (route) { case SOUND_ROUTE_OUT_SPEAKER: WDEBUG("SOUND_ROUTE_OUT_SPEAKER"); break; case SOUND_ROUTE_OUT_RECEIVER: WDEBUG("SOUND_ROUTE_OUT_RECEIVER"); break; case SOUND_ROUTE_IN_MIC_OUT_RECEIVER: WDEBUG("SOUND_ROUTE_IN_MIC_OUT_RECEIVER"); break; case SOUND_ROUTE_IN_MIC_OUT_SPEAKER: WDEBUG("SOUND_ROUTE_IN_MIC_OUT_SPEAKER"); break; }
and in logs I see that receiver is set as active route. What should I do to play a tone with receiver?
Thanks.