mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-31 11:08:52 -05:00
fold the seperate variable pa_sink_input::playing into pa_sink_input::state as state PA_SINK_INPUT_DRAINED. The following mappings hold:
old PA_SINK_RUNNING + playing set = new PA_SINK_RUNNING old PA_SINK_RUNNING + playing not set = new PA_SINK_DRAINED git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1162 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
12aa842174
commit
f1c46113ae
2 changed files with 18 additions and 15 deletions
|
|
@ -34,9 +34,10 @@ typedef struct pa_sink_input pa_sink_input;
|
|||
#include <pulsecore/client.h>
|
||||
|
||||
typedef enum pa_sink_input_state {
|
||||
PA_SINK_INPUT_RUNNING,
|
||||
PA_SINK_INPUT_CORKED,
|
||||
PA_SINK_INPUT_DISCONNECTED
|
||||
PA_SINK_INPUT_RUNNING, /*< The stream is alive and kicking */
|
||||
PA_SINK_INPUT_DRAINED, /*< The stream stopped playing because there was no data to play */
|
||||
PA_SINK_INPUT_CORKED, /*< The stream was corked on user request */
|
||||
PA_SINK_INPUT_DISCONNECTED /*< The stream is dead */
|
||||
} pa_sink_input_state_t;
|
||||
|
||||
struct pa_sink_input {
|
||||
|
|
@ -63,8 +64,6 @@ struct pa_sink_input {
|
|||
|
||||
void *userdata;
|
||||
|
||||
int playing;
|
||||
|
||||
pa_memchunk resampled_chunk;
|
||||
pa_resampler *resampler;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue