set esound.byte_order property

This commit is contained in:
Lennart Poettering 2009-02-23 23:49:08 +01:00
parent 5fa3f0c497
commit 73c763cb08

View file

@ -34,6 +34,7 @@
#include <pulse/timeval.h>
#include <pulse/utf8.h>
#include <pulse/xmalloc.h>
#include <pulse/proplist.h>
#include <pulsecore/esound.h>
#include <pulsecore/memblock.h>
@ -372,6 +373,8 @@ static int esd_proto_connect(connection *c, esd_proto_t request, const void *dat
return -1;
}
pa_proplist_sets(c->client->proplist, "esound.byte_order", c->swap_byte_order ? "reverse" : "native");
ok = 1;
connection_write(c, &ok, sizeof(int));
return 0;