~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/pulse/internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foointernalhfoo
2
2
#define foointernalhfoo
3
3
 
4
 
/* $Id: internal.h 1971 2007-10-28 19:13:50Z lennart $ */
 
4
/* $Id: internal.h 2067 2007-11-21 01:30:40Z lennart $ */
5
5
 
6
6
/***
7
7
  This file is part of PulseAudio.
103
103
    PA_LLIST_FIELDS(pa_stream);
104
104
 
105
105
    char *name;
 
106
    pa_bool_t manual_buffer_attr;
106
107
    pa_buffer_attr buffer_attr;
107
108
    pa_sample_spec sample_spec;
108
109
    pa_channel_map channel_map;
110
111
    uint32_t channel;
111
112
    uint32_t syncid;
112
113
    int channel_valid;
113
 
    uint32_t device_index;
 
114
    uint32_t stream_index;
114
115
    pa_stream_direction_t direction;
115
116
    pa_stream_state_t state;
 
117
    pa_bool_t buffer_attr_not_ready, timing_info_not_ready;
116
118
 
117
119
    uint32_t requested_bytes;
118
120
 
 
121
    uint32_t device_index;
 
122
    char *device_name;
 
123
    pa_bool_t suspended;
 
124
 
119
125
    pa_memchunk peek_memchunk;
120
126
    void *peek_data;
121
127
    pa_memblockq *record_memblockq;
157
163
    void *underflow_userdata;
158
164
    pa_stream_notify_cb_t latency_update_callback;
159
165
    void *latency_update_userdata;
 
166
    pa_stream_notify_cb_t moved_callback;
 
167
    void *moved_userdata;
 
168
    pa_stream_notify_cb_t suspended_callback;
 
169
    void *suspended_userdata;
160
170
};
161
171
 
162
172
typedef void (*pa_operation_cb_t)(void);
172
182
    pa_operation_state_t state;
173
183
    void *userdata;
174
184
    pa_operation_cb_t callback;
 
185
 
 
186
    void *private; /* some operations might need this */
175
187
};
176
188
 
177
189
void pa_command_request(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
178
190
void pa_command_stream_killed(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
179
191
void pa_command_subscribe_event(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
180
192
void pa_command_overflow_or_underflow(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
 
193
void pa_command_stream_suspended(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
 
194
void pa_command_stream_moved(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata);
181
195
 
182
196
pa_operation *pa_operation_new(pa_context *c, pa_stream *s, pa_operation_cb_t callback, void *userdata);
183
197
void pa_operation_done(pa_operation *o);