Skip to content

cant stream audio with DMA without blocking code in TLV320_Audio_Playback_Arduino example #3115

@alijani1

Description

@alijani1

I and using TLV320_Audio_Playback_Arduino example and it works but unfortunately it seems to only send one byte at a time to i2s interface in a loop and it blocks the whole code till audio finishes playing.

I tried removing the for look and sending entire buffer but .write seems like it can handle it and it still blocks code.

It would be very helpful if someone could update this example with non-blocking code where pointer to array can be passed with length so DMA can do the magic instead of cpu getting over loaded and/or blocked...

Maybe the i2s library being used is a poor implementation and we need to use a different one?

Any help would be great.

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