mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
sample cache work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@102 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e10b918009
commit
24291aff27
27 changed files with 835 additions and 251 deletions
|
|
@ -30,6 +30,8 @@
|
|||
#include "pdispatch.h"
|
||||
#include "native-common.h"
|
||||
|
||||
/*#define DEBUG_OPCODES*/
|
||||
|
||||
#ifdef DEBUG_OPCODES
|
||||
|
||||
static const char *command_names[PA_COMMAND_MAX] = {
|
||||
|
|
@ -51,6 +53,11 @@ static const char *command_names[PA_COMMAND_MAX] = {
|
|||
[PA_COMMAND_RECORD_STREAM_KILLED] = "RECORD_STREAM_KILLED",
|
||||
[PA_COMMAND_STAT] = "STAT",
|
||||
[PA_COMMAND_GET_PLAYBACK_LATENCY] = "PLAYBACK_LATENCY",
|
||||
[PA_COMMAND_CREATE_UPLOAD_STREAM] = "CREATE_UPLOAD_STREAM",
|
||||
[PA_COMMAND_DELETE_UPLOAD_STREAM] = "DELETE_UPLOAD_STREAM",
|
||||
[PA_COMMAND_FINISH_UPLOAD_STREAM] = "FINISH_UPLOAD_STREAM",
|
||||
[PA_COMMAND_PLAY_SAMPLE] = "PLAY_SAMPLE",
|
||||
[PA_COMMAND_REMOVE_SAMPLE] = "REMOVE_SAMPLE",
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -108,12 +115,13 @@ struct pa_pdispatch* pa_pdispatch_new(struct pa_mainloop_api *mainloop, const st
|
|||
pd->drain_userdata = NULL;
|
||||
|
||||
pd->in_use = pd->shall_free = 0;
|
||||
|
||||
return pd;
|
||||
}
|
||||
|
||||
void pa_pdispatch_free(struct pa_pdispatch *pd) {
|
||||
assert(pd);
|
||||
|
||||
|
||||
if (pd->in_use) {
|
||||
pd->shall_free = 1;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue