是否只是使用以下設定便可?
Code: Select all
ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip");
i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
i2s_cfg.i2s_config.bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT;
//i2s_cfg.i2s_config.communication_format = I2S_COMM_FORMAT_STAND_MAX;
//i2s_cfg.type = AUDIO_STREAM_WRITER;
ESP_LOGI(TAG, "the sample rate set %d", i2s_cfg.i2s_config.sample_rate);
i2s_stream_writer = i2s_stream_init(&i2s_cfg);