summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_sndio.c
Commit message (Collapse)AuthorAgeFilesLines
* audio/out: prepare for non-interleaved audiowm42013-11-121-4/+4
| | | | | | | | | | | | | | | | | | | This comes with two internal AO API changes: 1. ao_driver.play now can take non-interleaved audio. For this purpose, the data pointer is changed to void **data, where data[0] corresponds to the pointer in the old API. Also, the len argument as well as the return value are now in samples, not bytes. "Sample" in this context means the unit of the smallest possible audio frame, i.e. sample_size * channels. 2. ao_driver.get_space now returns samples instead of bytes. (Similar to the play function.) Change all AOs to use the new API. The AO API as exposed to the rest of the player still uses the old API. It's emulated in ao.c. This is purely to split the commits changing all AOs and the commits adding actual support for outputting N-I audio.
* audio/out: reject non-interleaved formatswm42013-11-121-0/+3
| | | | | | | | | | No AO can handle these, so it would be a problem if they get added later, and non-interleaved formats get accepted erroneously. Let them gracefully fall back to other formats. Most AOs actually would fall back, but to an unrelated formats. This is covered by this commit too, and if possible they should pick the interleaved variant if a non-interleaved format is requested.
* audio/out: remove useless info struct and redundant fieldswm42013-10-231-6/+2
|
* audio/out: add sndio supportChristian Neukirchen2013-10-031-0/+340
Based on an earlier patch for mplayer by Alexandre Ratchov <alex@caoua.org>