nativeaudio

audio playback for Go
Log | Files | Refs | README | LICENSE

commit fd00e3385aa0cb4b09b64e17af905687ecaccb5b
parent 38c008f470c4d41f8258132ba6fe20d027813787
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Mon,  6 May 2024 13:58:37 +0800

nativeaudio: [macos] document packetsPerLoop

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Maudio_macos.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio_macos.go b/audio_macos.go @@ -214,8 +214,8 @@ func decode(buf []byte) (_ []byte, f Format, _ error) { pinner.Pin(unsafe.SliceData(ic.mPacketDescriptions)) pinner.Pin(ic) - // This constant is derived from the example. I don't know what a "good" value is. // Adjusting this will tradeoff latency against throughput. + // Given that we aren't streaming, throughput is preferable. packetsPerLoop := C.UInt32(10000) // packet buffer holds valid packet data. Re-used between iterations.