      while (1);
   }
   SD.begin(CARDCS);
-  player.setVolume(10,10);
+  player.setVolume(0,0);
   esp_err_t ret = nvs_flash_init();
   if (ret == ESP_ERR_NVS_NO_FREE_PAGES) {
       ESP_ERROR_CHECK(nvs_flash_erase());

Adafruit_VS1053_FilePlayer player =
  Adafruit_VS1053_FilePlayer(VS1053_RESET, VS1053_CS, VS1053_DCS, VS1053_DREQ, CARDCS);

uint8_t data_global[4096];
bool once = true;
uint8_t counter = 0;
static void bt_av_hdl_stack_evt(uint16_t event, void *p_param)

      log_e("enable bluedroid failed\n");
      return;
  }
  while(!player.readyForData()) { delay(100); }
  
  // Turn on MP3
  player.sciWrite(VS1053_REG_WRAMADDR, 0xC017);
  player.sciWrite(VS1053_REG_WRAM, 3);
  player.sciWrite(VS1053_REG_WRAMADDR, 0xC019);
  player.sciWrite(VS1053_REG_WRAM, 0);

  player.softReset();
  player.sciWrite(VS1053_REG_AUDATA, 44101);
  player.sciWrite(VS1053_REG_CLOCKF, 6 << 12);
  
  player.sciWrite(VS1053_REG_MODE, VS1053_MODE_SM_LINE1 | VS1053_MODE_SM_SDINEW);

  /* create application task */
  bt_app_task_start_up();

  /* Bluetooth device name, connection mode and profile set up */
  bt_app_work_dispatch(bt_av_hdl_stack_evt, 0, NULL, 0, NULL);
  
}
void loop() {
  // put your main code here, to run repeatedly:
}
