1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00
mpv/audio/out
Stefano Pigozzi afdc9c4ae2 OSX: use native Cocoa's event loop
Schedule mpv's playloop as a high frequency timer inside the main Cocoa event
loop. This has the benefit to allow accessing menus as well as resizing the
window without the playback being blocked and allows to remove countless hacks
from the code that involved manually pumping the event loop as well simulating
manually some of the Cocoa default behaviours.

A huge improvement consists in removing NSApplicationLoad. This is a C function
defined in the Cocoa header and implements a minimal OSX application under ther
hood so that you can use the Cocoa GUI toolkit from C/C++ without having to
respect the Cocoa standards in terms of application initialization. This was
bad because the behaviour implemented by NSApplicationLoad was hard to customize
and had several gotchas especially in the menu department.

mpv was changed to be just a nib-less application. All the Cocoa part is still
generated in code but the event handling is now not dissimilar to what is
present in a stock Mac application.

As a part of reviewing the initialization process, I also removed all of
`osdep/macosx_finder_args`. The useful parts of the code were moved to
`osdep/macosx_appication` which has the broaded responsibility of managing the
full lifecycle of the Cocoa application. By consequence the
`--enable-macosx-finder` configure switch was killed as well, as this feature
is always enabled.

Another change the users will notice is that when using a bundle the `--quiet`
option will be inserted much earlier in the initializaion process. This results
in mpv not spamming mpv.log anymore with all the initialization outputs.
2013-05-12 15:27:54 +02:00
..
ao_alsa.c ao_alsa: do not call snd_pcm_delay() when paused 2013-01-06 19:28:08 +01:00
ao_coreaudio.c OSX: use native Cocoa's event loop 2013-05-12 15:27:54 +02:00
ao_dsound.c ao_dsound: add missing include 2013-03-23 21:04:27 +01:00
ao_jack.c ao_jack: fix deprecation warning 2013-04-12 00:10:39 +02:00
ao_lavc.c encoding: fix final audio frame sync 2013-04-28 11:39:38 +02:00
ao_null.c
ao_openal.c
ao_oss.c audio: remove support for native alaw/mulaw/adpcm output 2012-12-11 00:37:54 +01:00
ao_pcm.c ao_pcm: fix references to -novideo 2012-12-03 21:08:48 +01:00
ao_portaudio.c
ao_pulse.c audio: remove support for native alaw/mulaw/adpcm output 2012-12-11 00:37:54 +01:00
ao_rsound.c audio: remove support for native alaw/mulaw/adpcm output 2012-12-11 00:37:54 +01:00
ao_sdl.c ao_sdl: fix compilation with Libav 2013-01-06 16:04:17 +01:00
ao.c audio/out, video/out: hide encoding VO/AO 2013-02-06 23:04:18 +01:00
ao.h core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
audio_out_internal.h