语言

Menu
Sites
Language
[Sound manager] set_active_route doesn't work

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.

 

响应

3 回复
Alex Dem

Hi,
I did not find such api in Tizen 2.3 rev 3 at all. What SDK do you use?
Alexey.

pius lee

sound_manager_set_active_route is product level API. It can be only used in internally.

Maybe your application don't have product level privilege.

If you are a developer out side of samsung mobile company, don't use this function.

This function can be removed in future anytime.

Alex Dem

Hi,
fyi: There is Tizen IDE -> Tizen native Example-> Media Sample Application which has example of Tone Player.
Alexey.