Changeset 3400


Ignore:
Timestamp:
Dec 19, 2010 5:14:22 AM (13 years ago)
Author:
ming
Message:

Re #1174:
Fixed AudioSession? services error handling in factory initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c

    r3398 r3400  
    9898    struct stream_list           list_entry; 
    9999 
    100     pjmedia_aud_rec_cb           rec_cb;          /**< Capture callback.   */ 
    101     pjmedia_aud_play_cb          play_cb;         /**< Playback callback.  */ 
     100    pjmedia_aud_rec_cb           rec_cb;         /**< Capture callback.   */ 
     101    pjmedia_aud_play_cb          play_cb;        /**< Playback callback.  */ 
    102102    void                        *user_data;      /**< Application data.   */ 
    103103 
     
    298298                   "Error: cannot initialize audio session services (%i)", 
    299299                   ostatus)); 
    300         return PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(ostatus); 
    301300    } 
    302301 
     
    310309                   "Error: cannot set the audio session category (%i)", 
    311310                   ostatus)); 
    312         return PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(ostatus); 
    313311    } 
    314312 
     
    321319                   "Error: cannot listen for audio route change " 
    322320                   "notifications (%i)", ostatus)); 
    323         return PJMEDIA_AUDIODEV_ERRNO_FROM_COREAUDIO(ostatus); 
    324321    } 
    325322#endif 
     
    918915                                    &stream->play_thread); 
    919916        stream->play_thread_initialized = 1; 
    920         PJ_LOG(5,(THIS_FILE, "Player thread started, (%i frames)", inNumberFrames)); 
     917        PJ_LOG(5,(THIS_FILE, "Player thread started, (%i frames)", 
     918                  inNumberFrames)); 
    921919    } 
    922920 
     
    19571955#if !COREAUDIO_MAC 
    19581956    if (should_activate) 
    1959     AudioSessionSetActive(true); 
     1957        AudioSessionSetActive(true); 
    19601958#endif 
    19611959 
Note: See TracChangeset for help on using the changeset viewer.