8000 i2s can send now buffers by aguaviva · Pull Request #5349 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

i2s can send now buffers #5349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 24, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing crash
  • Loading branch information
aguaviva committed Nov 20, 2018
commit f2aa60563a6ba617e03ce165fa28a118ee459078
4 changes: 2 additions & 2 deletions cores/esp8266/core_esp8266_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ int16_t _i2s_write_buffer(int16_t *frames, int16_t frame_count, bool mono, bool
}
}

len -= fc;
frame_count -= fc;
frames_written += fc;
}
return frames_written;
Expand All @@ -399,7 +399,7 @@ int16_t i2s_write_buffer_mono(int16_t *frames, int16_t frame_count) { return _i2

int16_t i2s_write_buffer_nb(int16_t *frames, int16_t frame_count) { return _i2s_write_buffer(frames, frame_count, false, true); }

int16_t i2s_write_buffer(int16_t *frames, int16_t frame_count) { return _i2s_write_buffer(frames, frame_count, false false); }
int16_t i2s_write_buffer(int16_t *frames, int16_t frame_count) { return _i2s_write_buffer(frames, frame_count, false, false); }

bool i2s_read_sample(int16_t *left, int16_t *right, bool blocking) {
if (!rx) {
Expand Down
2943
0