Opened 8 years ago

Last modified 8 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: Analyzed by developer:

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@… 8 years ago.
my patch

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by lichray@…

my patch

comment:1 Changed 8 years ago by lichray@…

comment:2 Changed 8 years ago by compn

  • Cc patriotact@… added
  • Summary changed from Supports 24-bit playback for FreeBSD's OSS to [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.