Ignore:
Timestamp:
Feb 18, 2014 1:41:45 AM (8 years ago)
Author:
bennylp
Message:

Fixed #1736: Update to bdSound's bdiMad audio device to support output routing. Thanks Andrea for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/bdsound/include/bdimad.h

    r4432 r4748  
    5252 *    - <b>Usage</b> 
    5353 *    \n There are only a couple of things the customer have to pay attention on 
    54  *    §when using bdIMAD library. 
     54 *    ï¿œwhen using bdIMAD library. 
    5555 * 
    5656 *       - <b>Initialization</b> 
     
    341341} bdIMADpj_libVersion_t; 
    342342 
     343 
     344/** 
     345 * @brief Audio output routing setting to pass to set and get route output device functions. 
     346 */ 
     347typedef enum bdIMADpj_out_dev_route{ 
     348    /** Default route. */ 
     349    BD_AUD_DEV_ROUTE_DEFAULT = 0, 
     350 
     351    /** Route to loudspeaker */ 
     352    BD_AUD_DEV_ROUTE_LOUDSPEAKER = 1, 
     353 
     354    /** Route to earpiece */ 
     355    BD_AUD_DEV_ROUTE_EARPIECE = 2 
     356}bdIMADpj_out_dev_route; 
     357 
     358 
    343359/** 
    344360 * @} 
     
    409425 *                                     is modified with the applied settings. 
    410426 * @param[out] **ppWarningMessages     Pointer to pointer to a 
    411  *                                     ::bdIMADpj_Warnings_t sructure, 
     427 *                                     ::bdIMADpj_Warnings_t structure, 
    412428 *                                     which reports the warnings after the 
    413429 *                                     initialization. 
     
    514530 *                                     performed successfully, otherwise 
    515531 *                                     return an error (refer to 
    516  *                                     §::bdIMADpj_Status). 
     532 *                                     ï¿œ::bdIMADpj_Status). 
    517533 */ 
    518534BDIMADPJ_API bdIMADpj_Status bdIMADpj_setParameter(bdIMADpj bdIMADInstance, 
     
    537553                                bdIMADpj_Parameter parameterName, void *pValue); 
    538554 
     555/** 
     556 * @brief Is used to set the route of the output device of the bdIMAD object pointed by the 
     557 * <code>pBdIMADInstance</code>. 
     558 * @param[in] bdIMADInstance           bdIMAD object. 
     559 * @param[in] outputRoute              Indicate the route of the output device to set. 
     560 * @param[out] **ppWarningMessages     Pointer to pointer to a 
     561 *                                     ::bdIMADpj_Warnings_t structure, 
     562 *                                     which reports the warnings after the 
     563 *                                     set function. 
     564 * @return                             ::BD_PJ_OK if the function has been 
     565 *                                     performed successfully, otherwise return 
     566 *                                     an error (refer to ::bdIMADpj_Status). 
     567 */ 
     568BDIMADPJ_API bdIMADpj_Status bdIMADpj_setRouteOutputDevice(bdIMADpj bdIMADInstance, bdIMADpj_out_dev_route outputRoute, bdIMADpj_Warnings_t **ppWarningMessages); 
     569 
     570/** 
     571 * @brief Is used to get the route of the output device of the bdIMAD object pointed by the 
     572 * <code>pBdIMADInstance</code>. 
     573 * @param[in] bdIMADInstance           bdIMAD object. 
     574 * @param[out] *outputRoute            Is a pointer to the route of the output device currently setted. 
     575 * @return                             ::BD_PJ_OK if the function has been 
     576 *                                     performed successfully, otherwise return 
     577 *                                     an error (refer to ::bdIMADpj_Status). 
     578 */ 
     579BDIMADPJ_API bdIMADpj_Status bdIMADpj_getRouteOutputDevice(bdIMADpj bdIMADInstance, bdIMADpj_out_dev_route *outputRoute); 
    539580 
    540581#ifdef __cplusplus 
Note: See TracChangeset for help on using the changeset viewer.