Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7781d7b

Browse files
ci(pre-commit): Apply automatic fixes
1 parent de6f9f9 commit 7781d7b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

‎libraries/ESP_SR/src/ESP_SR.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ESP_SR_Class {
2323
~ESP_SR_Class();
2424

2525
void onEvent(sr_cb cb);
26-
/**
26+
/**
2727
* The input format:
2828
* M to represent the microphone channel
2929
* R to represent the playback reference channel
@@ -32,7 +32,10 @@ class ESP_SR_Class {
3232
* For example, input_format="MMNR" indicates that the input data consists of four channels,
3333
* which are the microphone channel, the microphone channel, an unused channel, and the playback channel
3434
*/
35-
bool begin(I2SClass &i2s, const sr_cmd_t *sr_commands, size_t sr_commands_len, sr_channels_t rx_chan = SR_CHANNELS_STEREO, sr_mode_t mode = SR_MODE_WAKEWORD, const char *input_format = "MN");
35+
bool begin(
36+
I2SClass &i2s, const sr_cmd_t *sr_commands, size_t sr_commands_len, sr_channels_t rx_chan = SR_CHANNELS_STEREO, sr_mode_t mode = SR_MODE_WAKEWORD,
37+
const char *input_format = "MN"
38+
);
3639
bool end(void);
3740
bool setMode(sr_mode_t mode);
3841
bool pause(void);

‎libraries/ESP_SR/src/esp32-hal-sr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ esp_err_t sr_set_mode(sr_mode_t mode) {
313313
}
314314

315315
esp_err_t sr_start(
316-
sr_fill_cb fill_cb, void *fill_cb_arg, sr_channels_t rx_chan, sr_mode_t mode, const char *input_format, const sr_cmd_t sr_commands[], size_t cmd_number, sr_event_cb cb, void *cb_arg
316+
sr_fill_cb fill_cb, void *fill_cb_arg, sr_channels_t rx_chan, sr_mode_t mode, const char *input_format, const sr_cmd_t sr_commands[], size_t cmd_number,
317+
sr_event_cb cb, void *cb_arg
317318
) {
318319
esp_err_t ret = ESP_OK;
319320
ESP_RETURN_ON_FALSE(NULL == g_sr_data, ESP_ERR_INVALID_STATE, "SR already running");

‎libraries/ESP_SR/src/esp32-hal-sr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ typedef void (*sr_event_cb)(void *arg, sr_event_t event, int command_id, int phr
4949
typedef esp_err_t (*sr_fill_cb)(void *arg, void *out, size_t len, size_t *bytes_read, uint32_t timeout_ms);
5050

5151
esp_err_t sr_start(
52-
sr_fill_cb fill_cb, void *fill_cb_arg, sr_channels_t rx_chan, sr_mode_t mode, const char *input_format, const sr_cmd_t *sr_commands, size_t cmd_number, sr_event_cb cb, void *cb_arg
52+
sr_fill_cb fill_cb, void *fill_cb_arg, sr_channels_t rx_chan, sr_mode_t mode, const char *input_format, const sr_cmd_t *sr_commands, size_t cmd_number,
53+
sr_event_cb cb, void *cb_arg
5354
);
5455
esp_err_t sr_stop(void);
5556
esp_err_t sr_pause(void);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /