aboutsummaryrefslogtreecommitdiffhomepage
path: root/audio/out/ao_coreaudio_utils.c
Commit message (Collapse)AuthorAge
...
* ao_coreaudio: cosmetic change of loop ending conditionGravatar Stefano Pigozzi2014-05-10
|
* ao_coreaudio: use description-based channel layoutsGravatar Stefano Pigozzi2014-05-10
| | | | | | | | | | | | CoreAudio supports 3 kinds of layouts: bitmap based, tag based, and speaker description based (using either channel labels or positional data). Previously we tried to convert everything to bitmap based channel layouts, but it turns out description based ones are the most generic and there are built-in CoreAudio APIs to perform the conversion in this direction. Moreover description based layouts support waveext extensions (like SDL and SDR), and are easier to map to mp_chmaps.
* ao_coreaudio: pass layout by reference to logging functionGravatar Stefano Pigozzi2014-05-10
| | | | | Apparently passing the struct by value somehow messed with the value of some fields.
* ao_coreaudio: log even more info in verbose modeGravatar Stefano Pigozzi2014-04-24
| | | | | This logs more info that can be used for debugging purposes, in particular it prints all the AudioChannelDescription in the descriptions array.
* ao_coreaudio: add verbose output of detected channel layoutsGravatar Stefano Pigozzi2014-04-23
| | | | This can be useful for debugging purposes.
* msg: rename mp_msg_log -> mp_msgGravatar wm42013-12-21
| | | | Same for companion functions.
* ao_coreaudio: simplify ch label to speaker id conversionGravatar Stefano Pigozzi2013-11-27
| | | | | | | | Previous code was using the values of the AudioChannelLabel enum directly to create the channel bitmap. While this was quite smart it was pretty unreadable and fragile (what if Apple changes the values of those enums?). Change it to use a 'dumb' conversion table.
* ao_coreaudio: map channel labels needed for 8ch layoutsGravatar Stefano Pigozzi2013-11-27
| | | | | | The code stopped at kAudioChannelLabel_TopBackRight and missed mapping for 5 more channel labels. These are in a completely different order that the mpv ones so they must be mapped manually.
* ao_coreaudio: move to new log APIGravatar Stefano Pigozzi2013-08-01
|
* ao_coreaudio: remove useless definesGravatar Stefano Pigozzi2013-08-01
| | | | They are already defined in the header file
* ao_coreaudio: switch properties getters to tallocGravatar Stefano Pigozzi2013-07-22
|
* ao_coreaudio: reduce verbosity of the chmapping codeGravatar Stefano Pigozzi2013-07-22
|
* ao_coreaudio: refactor chmap detectionGravatar Stefano Pigozzi2013-07-22
| | | | | | b2f9e0610 introduced this functionality with code that was quite 'monolithic'. Split the functionality over several functions and ose the new macros to get array properties.
* ao_coreaudio: refactor properties codeGravatar Stefano Pigozzi2013-07-22
| | | | | | | | Introduce some macros to deal with properties. These allow to work around the limitation of CoreAudio's API being `void **` based. The macros allow to keep their client's code DRY, by not asking size and other details which can be derived by the macro itself. I have no idea why Apple didn't design their API like this in the first place.
* ao_coreaudio: move utils functions to snake_caseGravatar Stefano Pigozzi2013-07-22
|
* ao_coreaudio: split ao_coreaudio_common in two filesGravatar Stefano Pigozzi2013-07-22
* ao_coreaudio_utils: contains several utility function * ao_coreaudio_properties: contains functions to set and get audio object properties. Conflicts: audio/out/ao_coreaudio.c