Opened 13 years ago

Last modified 13 years ago

#1920 new defect

[PATCH] Supports 24-bit playback for FreeBSD's OSS

Reported by: lichray@… Owned by: reimar
Priority: normal Component: ao
Version: HEAD Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

OSS 3.x does not support 24-bit audio format. OSS 4.x supports 24-bit audio in 3 bytes mode via AFMT_S24_PACKED, as being used by libao/ao_oss.c. FreeBSD has it's own OSS implementation, which supports 24-bit audio in 3 bytes mode via AFMT_S24_LE, AFMT_S24_BE, AFMT_U24_LE, and AFMT_U24_BE, which conflicts with OSS 4.x. So my patch tries OSS 4.x API first, than FreeBSD.

This patch has been tested on both OSS 4.x and FreeBSD OSS. Some FreeBSD users involved.

Attachments (1)

patch-libao2-ao_oss.c (1.1 KB ) - added by lichray@… 13 years ago.
my patch

Download all attachments as: .zip

Change History (3)

by lichray@…, 13 years ago

Attachment: patch-libao2-ao_oss.c added

my patch

comment:1 by lichray@…, 13 years ago

comment:2 by compn, 13 years ago

Cc: patriotact@… added
Summary: Supports 24-bit playback for FreeBSD's OSS[PATCH] Supports 24-bit playback for FreeBSD's OSS

could you post this patch to mplayer-dev-eng mailing list? :)

Note: See TracTickets for help on using tickets.