Johan Kiviniemi
912f609403
ao_pulse: bug fix: goto the correct error handler
2013-09-20 13:50:45 +02:00
Johan Kiviniemi
e5710ccc5d
ao_pulse: set the property media.role=video
2013-09-20 13:50:13 +02:00
wm4
0162271725
mixer: make struct opaque
...
Also remove stray include statements from ao_alsa and ao_oss.
2013-09-20 13:23:25 +02:00
wm4
0d8a62c08d
Some more mp_msg conversions
...
Also add a note to mp_msg.h, since it might be not clear which of the
two mechanisms is preferred.
2013-08-23 23:30:09 +02:00
wm4
edd36a3afc
audio/out: do some mp_msg conversions
...
Use the new MP_ macros for some AOs instead of mp_msg.
Not all AOs are converted, and some only partially. In some cases, some
additional cosmetic changes are made.
2013-08-22 23:12:35 +02:00
wm4
cb54c2dda8
ao: remove some leftovers
2013-08-22 22:45:24 +02:00
Stefano Pigozzi
406241005e
core: move contents to mpvcore (2/2)
...
Followup commit. Fixes all the files references.
2013-08-06 22:52:31 +02:00
Diogo Franco
57ec67a6cc
Merge pull request #154 from rossy2401/wasapi-pause
...
WASAPI stops working after pause
2013-08-05 18:22:46 -07:00
Stefano Pigozzi
0bd09da570
ao_coreaudio: move to new log API
2013-08-01 20:32:49 +02:00
Stefano Pigozzi
5cd5f0cf70
ao_coreaudio: remove useless defines
...
They are already defined in the header file
2013-08-01 20:32:49 +02:00
Stefano Pigozzi
3449e893e1
audio/out: add support for new logging API
2013-08-01 20:32:49 +02:00
Jonathan Yong
29b0be400c
Fix some warnings
2013-07-30 11:05:39 -03:00
Stefano Pigozzi
e777a86b69
ao_coreaudio: use default output unit when no device is specified
...
Using the default output audio unit should provide a much better user
exeperience since it changes automatically the output device based on which
becomes the default one.
2013-07-29 08:22:33 +02:00
Stefano Pigozzi
ca678dce4d
ao_coreaudio: prevent buffer underruns to output garbage
...
This was removed in d427b4fd. I now found a sample that causes underruns when
moving to a chapter and apparently this is also a problem when taking
screenshots.
2013-07-28 11:21:03 +02:00
Dmitry Kalinkin
721071a5ec
ao_coreaudio: fix compilation on OS X 10.7
...
Reverts one of the changes from 18777ecf. `kAudioObjectPropertyScopeOutput`
was introduced in the 10.8 SDK while `kAudioDevicePropertyScopeOutput` was
moved to `AudioHardwareDeprecated.h`. Since the deprecation is silent for now
(no warnings), just use the old constant.
Either way, they both evaluate to 'outp', and in the 10.8 SDK the deprecated
constant is defined in terms of the non-deprecated one.
Fixes #155
2013-07-28 09:48:49 +02:00
James Ross-Gowan
8e1461b9f8
ao_wasapi: don't check the audio feed while paused
2013-07-27 14:28:42 +10:00
wm4
f32a90a839
audio/out: remove options argument from init()
...
Same as with VOs in the previous commit.
2013-07-22 22:58:09 +02:00
wm4
1df2ad7e03
Remove subopt-helper
...
Finally not used by anything anymore. Farewell.
2013-07-22 22:42:55 +02:00
Stefano Pigozzi
14f1a25a8e
ao_coreaudio: fix ifdef'd conditional
...
The big endian case was not covered. Doesn't make much difference since mpv
runs on Macs with x86 only, but for the sake of correctness.
2013-07-22 22:35:44 +02:00
Stefano Pigozzi
cd10936357
ao_coreaudio: use new option API
2013-07-22 22:27:08 +02:00
Stefano Pigozzi
7d58c51fd6
ao_coreaudio: switch properties getters to talloc
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
af6ad6717f
ao_coreaudio: reduce verbosity of the chmapping code
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
df39121206
ao_coreaudio: revert to original device format on digital uninit
...
This is not done automatically by CoreAudio. I am told that it would a PITA
to have to switch back the format manually on the device (especially if the
same device is used for lpcm output).
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
c11c744998
ao_coreaudio: refactor chmap detection
...
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.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
18777ecfe8
ao_coreaudio: refactor properties code
...
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.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
1ed1175636
ao_coreaudio: move utils functions to snake_case
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
1e37965597
ao_coreaudio: split ao_coreaudio_common in two files
...
* 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
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
5a195845e3
ao_coreaudio: store asbd only when selected
...
Previous code needlessly stored the input asbd before actually testing it's
support against the hardware.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
4e0618dab9
ao_coreaudio: fallback to waveext on non surround inputs
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
c2de6fdf34
ao_coreaudio: set channel layout based on hardware query
...
this is a wip
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
9652245ef0
ao_coreaudio: fix regression in digital stream selection
...
The condition was checked wrongly on asbd which is the input format
description. This lead to the condition always being true, thus selecting lpcm
streams for digital input.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
e61102e637
ao_coreaudio: return errors instead false in init functions
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
b41fcc1e2c
ao_coreaudio: remove useless function declaration
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
b174d647e5
ao_coreaudio: only set chmap_sel info for lpcm
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
4d15f1bb60
ao_coreaudio: set channel layout bitmap
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
24cad42363
ao_coreaudio: move digital detection before asbd creation
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
6473cc59b1
ao_coreaudio: remove chmap selection if format is digital
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
6d2f9a2804
ao_coreaudio: remove volume multiplication by 4
...
kHALOutputParam_Volume is the linear gain so it should be at maximum 1 to
keep the audio quality good. No idea why it was more than that.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
a2d106cb31
ao_coreaudio: remove device property listener on uninit
...
Also extract this functionality inside a function in coreaudio_common
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
7b2b292343
ao_coreaudio: print help string in one go
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
5a4ae42892
ao_coreaudio: change all ++var to var++
...
Luckily they all were inside for loops so the functionality does not actually
change.
2013-07-22 21:53:18 +02:00
Stefano Pigozzi
d3fb585b58
ao_coreaudio: change private vars names to match mpv conventions
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
d9c0dc7733
ao_coreaudio: remove packetSize private variable
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
7d7381f9cf
ao_coreaudio: refactor play/pause
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
d4b161f37d
ao_coreaudio: refactor uninit
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
f392ffe95c
ao_coreaudio: remove a fixme since that seems fixed
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
6e44b12240
ao_coreaudio: ca_msg: add trailing \n where missing
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
88425625cf
ao_coreaudio: refactor play
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
065e446e04
ao_coreaudio: extract mixmode set/unset in utility functions
2013-07-22 21:53:17 +02:00
Stefano Pigozzi
838fa07376
ao_coreaudio: move AudioStreamChangeFormat to common file and refactor
2013-07-22 21:53:17 +02:00