Skip to content

Commit 705b465

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
Add AAudioStream_read to idiomatic audio overlay
Exposes Stream.Read() for capturing audio from input streams, mirroring the existing Stream.Write() for playback.
1 parent 5fbb63c commit 705b465

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

audio/stream.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/overlays/aaudio.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ functions:
139139
buf_frames_param: numFrames
140140
timeout_param: timeoutNanos
141141
returns_frames: true
142+
AAudioStream_read:
143+
receiver: Stream
144+
go_name: Read
145+
buf_param: buffer
146+
buf_frames_param: numFrames
147+
timeout_param: timeoutNanoseconds
148+
returns_frames: true
142149

143150
extra_enums:
144151
aaudio_result_t:

0 commit comments

Comments
 (0)