- Timestamp:
- Feb 18, 2009 3:23:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/symbian_sound_aps.cpp
r2460 r2461 1399 1399 * Activate/deactivate loudspeaker. 1400 1400 */ 1401 PJ_DEF(pj_status_t) pjmedia_snd_aps_activate_loudspeaker( 1402 pjmedia_snd_stream *stream, 1403 pj_bool_t active) 1401 PJ_DEF(pj_status_t) pjmedia_snd_aps_set_route( pjmedia_snd_stream *stream, 1402 pjmedia_snd_route route) 1404 1403 { 1405 1404 PJ_ASSERT_RETURN(stream && stream->engine, PJ_EINVAL); 1405 1406 TBool loudspk_active; 1406 1407 1407 TInt err = stream->engine->ActivateSpeaker(active); 1408 switch (route) { 1409 case PJMEDIA_SND_ROUTE_DEFAULT: 1410 case PJMEDIA_SND_ROUTE_EARPIECE: 1411 loudspk_active = EFalse; 1412 break; 1413 case PJMEDIA_SND_ROUTE_LOUDSPEAKER: 1414 loudspk_active = ETrue; 1415 break; 1416 default: 1417 return PJ_EINVAL; 1418 } 1419 1420 TInt err = stream->engine->ActivateSpeaker(loudspk_active); 1408 1421 if (err != KErrNone) 1409 1422 return PJ_RETURN_OS_ERROR(err);
Note: See TracChangeset
for help on using the changeset viewer.