5 Replies Latest reply on Aug 14, 2018 7:19 AM by MichaelF_56

    is 20719b1 headset, haw get the audio data?

    guoqingcheng_2988496

      i use the 20719b1 headset project. i want get the audio data.

       

      than i test change like this:

       

      wiced_bt_voice_path_setup_t handsfree_sco_path = {

          .path = WICED_BT_SCO_OVER_APP_CB,

          .p_sco_data_cb = get_audio_form_pcm_callback

      };

       

      #define REV_AUDIO_DATA_BUFF_LEN 256

      uint8_t rev_audio_data_buff[REV_AUDIO_DATA_BUFF_LEN];

      int rev_audio_data_index = 0 ;

      void get_audio_form_pcm_callback (uint32_t ltch_len, uint8_t *p_data){

          int len, sco_chanel ;

       

          sco_chanel = ltch_len & 0xff ;

          len = (ltch_len >> 8) & 0xff ;

          WICED_BT_TRACE("%d, %d\r\n", len, sco_chanel);

          if(len > 0){

               memcpy(rev_audio_data_buff, p_data, len);

          }

      }

       

       

      but the get_audio_form_pcm_callback  isn't runing