Ignore:
Timestamp:
Feb 18, 2009 3:23:47 PM (10 years ago)
Author:
nanang
Message:
  • Updated audio route API for Symbian APS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/symbian_sound_aps.cpp

    r2460 r2461  
    13991399 * Activate/deactivate loudspeaker. 
    14001400 */ 
    1401 PJ_DEF(pj_status_t) pjmedia_snd_aps_activate_loudspeaker( 
    1402                                         pjmedia_snd_stream *stream, 
    1403                                         pj_bool_t active) 
     1401PJ_DEF(pj_status_t) pjmedia_snd_aps_set_route( pjmedia_snd_stream *stream, 
     1402                                               pjmedia_snd_route route) 
    14041403{ 
    14051404    PJ_ASSERT_RETURN(stream && stream->engine, PJ_EINVAL); 
     1405 
     1406    TBool loudspk_active; 
    14061407     
    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); 
    14081421    if (err != KErrNone) 
    14091422        return PJ_RETURN_OS_ERROR(err); 
Note: See TracChangeset for help on using the changeset viewer.