• Eric Wong's avatar
    send SIGSTOP to player and decoder processes on pause, too · f18e5241
    Eric Wong authored
    as with the stop command, this will cause the player and decoder
    to suspend and not wake up hundreds of times a second to poll
    a variable for wakeup.  This will reduce power consumption
    on some CPUs while mpd is paused and not playing.
    
    tests:
    
    pause && unpause => OK
    
    pause && stop && play => OK
    
    pause && exit && restart w/statefile && unpause => OK
    
    pause && block sound device && \
    unpause => failed to open sound device \
    => still paused and suspended => unblock sound device &&
    unpause => OK (playing)
    
    In all cases, the player process releases the audio device
    when paused before going into the suspended state.
    
    git-svn-id: https://svn.musicpd.org/mpd/trunk@6822 09075e82-0dd4-0310-85a5-a0d7c8717e4f
    f18e5241
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...