From 54aea7d5de13735bad291c0f1d9ba93b17a6321e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 28 Dec 2014 09:38:22 +0100 Subject: chmap_sel: add multichannel fallback heuristic Instead of just failing during channel map selection, try to select a close layout that makes most sense and upmix/downmix to that instead of failing AO initialization. The heuristic is rather simple, and uses the following steps: 1) If mono is required always prefer stereo to a multichannel upmix. 2) Search for an upmix that is an exact superset of the required channel map. 3) Search for a downmix that is the exact subset of the required channel map. 4) Search for either an upmix or downmix that is the closest (minimum difference of channels) to the required channel map. --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 8b752fa607..20d8bbed99 100644 --- a/wscript +++ b/wscript @@ -84,6 +84,10 @@ build_options = [ 'desc': 'inline assembly (currently without effect)', 'default': 'enable', 'func': check_true, + }, { + 'name': '--test', + 'desc': 'test suite (using cmocka)', + 'func': check_pkg_config('cmocka >= 0.4.1'), } ] -- cgit v1.2.3