Skip to content

'i2s_read_bytes' was not declared in this scope #3

@Voha888

Description

@Voha888

If ESP32 version is 2.xx, the compiler print error: 'i2s_read_bytes' was not declared in this scope.
I think, its need new function i2s_read , but simple changing function neme

i2s_read(I2S_NUM_0, (char*)&i2s_buff[i * NUM_SAMPLES], NUM_SAMPLES * sizeof(uint16_t), portMAX_DELAY);

not helped me, i have error:

Compilation error: narrowing conversion of 'rate' from 'int' to 'uint32_t' {aka 'unsigned int'} inside { } [-Werror=narrowing]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions