commit 660c4fdaaf824a7313ea60956580fa02d69f7b11
parent 837631ba1992643872d6acd65851f16d9765eaae
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Thu, 28 Oct 2021 12:05:11 +0800
nativeaudio: [docs] update readme
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -4,14 +4,16 @@
native audio APIs.
The resultant output should be PCM s16le playable directly and also by
-github.com/hajimehoshi/oto.
+github.com/hajimehoshi/oto and github.com/faiface/beep.
This package was inspired by the utter lack of audio decoders for AAC,
which it turns out is a closed codec that Windows and macOS have bought
licenses for.
For the moment Windows is implemented via the Media Foundation, and
-other platforms shell out to FFmpeg as a fallback.
+other platforms shell out to FFmpeg as a fallback. Unfortunately we can't link
+to FFmpeg without accepting the GPL, so we must take the performance hit of
+using a sub-process.
macOS bindings are expected to land relatively soon, however the other
platforms are left as an exercise to the community.
@@ -30,8 +32,5 @@ func main() {
## TODO
-- [ ] report back the sample rate, number of channels and bit depth
- [ ] macOS native bindings
-- [ ] byte level `Decode([]byte) []byte` function that avoids file system dependency all together
-- [ ] optimize memory usage
- - we can manage memory entirely from the Go side with a touch more orchestration
+- [ ] streaming API (current API is a buffered for simplicity)
+\ No newline at end of file