mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
a couple of build fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1658 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
1d5e9f0205
commit
8a663d4cda
4 changed files with 16 additions and 16 deletions
|
|
@ -268,7 +268,7 @@ static int pa_oss_get_volume(int fd, int mixer, const pa_sample_spec *ss, pa_cvo
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pa_oss_set_volume(int fd, int mixer, const pa_sample_spec *ss, const pa_cvolume *volume) {
|
||||
static int pa_oss_set_volume(int fd, long mixer, const pa_sample_spec *ss, const pa_cvolume *volume) {
|
||||
char cv[PA_CVOLUME_SNPRINT_MAX];
|
||||
unsigned vol;
|
||||
pa_volume_t l, r;
|
||||
|
|
|
|||
|
|
@ -590,14 +590,14 @@ static playback_stream* playback_stream_new(
|
|||
const pa_sample_spec *ss,
|
||||
const pa_channel_map *map,
|
||||
const char *name,
|
||||
size_t *maxlength,
|
||||
size_t *tlength,
|
||||
size_t *prebuf,
|
||||
size_t *minreq,
|
||||
uint32_t *maxlength,
|
||||
uint32_t *tlength,
|
||||
uint32_t *prebuf,
|
||||
uint32_t *minreq,
|
||||
pa_cvolume *volume,
|
||||
uint32_t syncid,
|
||||
int corked,
|
||||
size_t *missing) {
|
||||
uint32_t *missing) {
|
||||
|
||||
playback_stream *s, *ssync;
|
||||
pa_sink_input *sink_input;
|
||||
|
|
@ -674,11 +674,11 @@ static playback_stream* playback_stream_new(
|
|||
|
||||
pa_memblock_unref(silence);
|
||||
|
||||
*maxlength = pa_memblockq_get_maxlength(s->memblockq);
|
||||
*tlength = pa_memblockq_get_tlength(s->memblockq);
|
||||
*prebuf = pa_memblockq_get_prebuf(s->memblockq);
|
||||
*minreq = pa_memblockq_get_minreq(s->memblockq);
|
||||
*missing = pa_memblockq_missing(s->memblockq);
|
||||
*maxlength = (uint32_t) pa_memblockq_get_maxlength(s->memblockq);
|
||||
*tlength = (uint32_t) pa_memblockq_get_tlength(s->memblockq);
|
||||
*prebuf = (uint32_t) pa_memblockq_get_prebuf(s->memblockq);
|
||||
*minreq = (uint32_t) pa_memblockq_get_minreq(s->memblockq);
|
||||
*missing = (uint32_t) pa_memblockq_missing(s->memblockq);
|
||||
|
||||
pa_atomic_store(&s->missing, 0);
|
||||
s->last_missing = *missing;
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
|
|||
|
||||
volume_is_norm = pa_cvolume_is_norm(&info->sink_input->thread_info.volume);
|
||||
|
||||
pa_log_debug("Buffering l%u bytes ...", (unsigned long) info->buffer_bytes);
|
||||
pa_log_debug("Buffering %lu bytes ...", (unsigned long) info->buffer_bytes);
|
||||
|
||||
while (info->buffer_bytes > 0) {
|
||||
pa_memchunk memchunk;
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ static void producer(void *_q) {
|
|||
|
||||
for (i = 0; i < 1000; i++) {
|
||||
printf("pushing %i\n", i);
|
||||
pa_asyncq_push(q, (void*) (i+1), 1);
|
||||
pa_asyncq_push(q, PA_UINT_TO_PTR(i+1), 1);
|
||||
}
|
||||
|
||||
pa_asyncq_push(q, (void*) -1, 1);
|
||||
pa_asyncq_push(q, PA_UINT_TO_PTR(-1), 1);
|
||||
printf("pushed end\n");
|
||||
}
|
||||
|
||||
|
|
@ -58,10 +58,10 @@ static void consumer(void *_q) {
|
|||
for (i = 0;; i++) {
|
||||
p = pa_asyncq_pop(q, 1);
|
||||
|
||||
if (p == (void*) -1)
|
||||
if (p == PA_UINT_TO_PTR(-1))
|
||||
break;
|
||||
|
||||
pa_assert(p == (void *) (i+1));
|
||||
pa_assert(p == PA_UINT_TO_PTR(i+1));
|
||||
|
||||
printf("popped %i\n", i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue