Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/usr.sbin/bta2dpd/bta2dpd



Module Name:    src
Committed By:   martin
Date:           Sun May 28 10:34:59 UTC 2023

Modified Files:
        src/usr.sbin/bta2dpd/bta2dpd [netbsd-10]: sbc_encode.c

Log Message:
Pull up following revision(s) (requested by nat in ticket #184):

        usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.11

With the latest changes, pad(4) will return partial reads to allow a
more fine grained pacing of audio data. But this broke bta2dpd which
relied on full buffers returned (like reading from a file).

Replace the single read() in bta2dpd with a loop that fetches a full
buffer. This restores the old behaviour but loops in userland instead
of the kernel at the cost of a few extra system calls.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.8.1 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index