Lennart Poettering
8580967062
add support more for up to 16 auxiliary channel positions
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@464 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-27 16:30:09 +00:00
Lennart Poettering
dd10c98241
Mega patch:
...
* implement inner loops using liboil
* drop "typeid" stuff
* add support for channel maps
* add support for seperate volumes per channel
* add support for hardware mixer settings (only module-oss implements this for now)
* fix a lot of types for _t suffix
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@463 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-27 16:25:31 +00:00
Pierre Ossman
759721cbbc
Remove the version number from the module directory. Makes life easier
...
for any external projects that need to use that directory.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@462 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-27 14:52:17 +00:00
Pierre Ossman
917d8765c6
We get the -lcap through LIBS, so no need for CAP_LIBS.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@461 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-25 17:27:10 +00:00
Pierre Ossman
104797b5a0
Use AC_SEARCH_LIBS instead of AC_CHECK_LIBS since it is a lot smarter and
...
doesn't add unnecessary libs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@460 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-25 17:25:28 +00:00
Pierre Ossman
30bb5ceaee
Fix so that peer name can be determined on Windows. We do not support console
...
on Windows at this time so we do not have to worry about that right now.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@459 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-20 10:16:37 +00:00
Pierre Ossman
60dbf8b82d
Open the device in non-blocking mode.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@458 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-19 10:26:06 +00:00
Pierre Ossman
0ca9a0ea09
Ugly hack to get around Solaris particularly brain dead sound system.
...
The system has a buffer size of 0.5 MB which cannot be changed. We emulate
a smaller buffer through some SIGPOLL trickery.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@457 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-19 10:24:49 +00:00
Pierre Ossman
719c3773d4
We need a logical, not an arithmetic shift here. So use unsigned types when
...
doing the shifting.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@456 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-16 13:35:25 +00:00
Pierre Ossman
262c60fcaa
Under win32 we freed the wrong pointer causing a segmentation fault.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@455 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-12 17:12:44 +00:00
Pierre Ossman
cb2a7ed028
Some crappy hardware generate noise on the output when reading input. To
...
avoid triggering this needlesly we tweak the algorithm a bit to avoid reading
when nothing is connected to the source.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@454 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-12 16:11:54 +00:00
Pierre Ossman
289c914b47
Some drivers (via82xx) doesn't start recording until we read something.
...
This is ugly, but unfortunately required.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@453 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-12 16:09:58 +00:00
Pierre Ossman
fc93e4b3a7
Used 0 as an invalid fd. Changed to -1.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@452 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-12 16:08:14 +00:00
Pierre Ossman
f61be8b654
If the card couldn't do duplex when required we would incorrectly return
...
success from this function with a closed fd.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@451 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-12 16:04:21 +00:00
Pierre Ossman
72316ccf9c
Many (FSF and Sun at least) have interpreted the C99 standard in a way
...
that int64_t and similar types are only defined on 64 bit platforms. Using
-std=gnu99 lifts this rather silly restriction.
The HAVE_NETLINK define is not generated anywhere in our configure. So it
was rather pointless to use it for any test.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@450 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-11 14:36:02 +00:00
Pierre Ossman
2623edcc42
Remove the old compiler flag test now that we have a new shiny one.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@449 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-11 14:13:28 +00:00
Pierre Ossman
70ac72ee7f
Our makefiles work just fine on older automakes (1.7 tested). Let's keep
...
this out until we run into something that doesn't work.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@448 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-11 14:12:38 +00:00
Lennart Poettering
1f0961368f
* remove a lot of compiler warnings introduced by using some new GCC flags
...
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-11 01:17:39 +00:00
Lennart Poettering
6c512fb5a3
build system updates, including support for some newer GCC options
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@446 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 18:04:54 +00:00
Lennart Poettering
f7a99e9047
Merge Pierre's changes
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 17:51:06 +00:00
Pierre Ossman
34e81ffb35
Handle Windows paths when normalizing authkey path.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@444 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 16:56:59 +00:00
Pierre Ossman
29118f50cb
Make sure the caps header check can also be disabled.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@443 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 13:19:03 +00:00
Pierre Ossman
1015ea4241
Store previous reported time in order to assure a monotonic clock.
...
This is a resurrection of a feature previously removed. The new version
is without the race condition of the original one.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@442 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 12:45:11 +00:00
Pierre Ossman
d429222476
Accidental use of a swapped int.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@441 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 12:37:41 +00:00
Pierre Ossman
11c6cac324
buf is needed on Windows aswell.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@440 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:16:39 +00:00
Pierre Ossman
abdf9b1c3f
Add needed error code.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@439 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:16:20 +00:00
Pierre Ossman
0a9abdd9d1
Unfortunately Windows has two different values for EBADF depending on
...
if it's a file or a socket. We'll have to deal with these as they show
up.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@438 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:15:56 +00:00
Pierre Ossman
ba06340ab8
Add some required headers.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@437 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:15:13 +00:00
Pierre Ossman
357ab88ab5
Make sure socklen_t is defined.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@436 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:14:41 +00:00
Pierre Ossman
5e5808ab08
Static libs bork the creation of dlls and AC_CHECK_LIB isn't very bright,
...
so we have to do a test first to see if getopt_long() is included in the
system libs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@435 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 09:13:48 +00:00
Pierre Ossman
ff4cc6273d
Move library checks to a separate section and make sure it's before
...
function checks. It could miss functions because they are hidden in
extra libs otherwise.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@434 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 08:35:14 +00:00
Pierre Ossman
f5a2cf1e86
getopt_long resides in libiberty on many platforms.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@433 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-10 07:50:50 +00:00
Pierre Ossman
76bc56cf3b
Put inet_ntop() emulation in a seperate file.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@432 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 17:14:30 +00:00
Pierre Ossman
d3cb1448b4
Update comment for pa_lock_fd() to reflect that locks are mandatory
...
on Windows.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@431 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 16:59:12 +00:00
Pierre Ossman
160d886c0d
Merge with trunk.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@430 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 16:57:42 +00:00
Pierre Ossman
8258146625
Generalise lstat fallback.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@429 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 16:56:41 +00:00
Pierre Ossman
5fcbf04f5b
Condense winsock includes and defines into one header.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@428 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 16:50:39 +00:00
Pierre Ossman
9818d67ec2
Make the tagstruct handling safe on machines with alignment restrictions.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@427 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 14:39:40 +00:00
Lennart Poettering
80ae72ce45
improve sync clock change
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 12:38:06 +00:00
Lennart Poettering
794033aa75
fix synchronized clock change
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@425 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 12:37:17 +00:00
Pierre Ossman
8a323571a4
Make sure the data gets endianness conversion.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@424 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-09 11:54:49 +00:00
Pierre Ossman
067c00ff5d
Reversing incorrect commit.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@423 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 23:13:54 +00:00
Pierre Ossman
72795fcaa6
Use autoconf detected define for getgroups() type.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@422 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 23:11:15 +00:00
Pierre Ossman
d5ce3ecef2
Ignore windows exe:s.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@421 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 23:08:13 +00:00
Pierre Ossman
1b472f76ec
Solaris support.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@420 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 23:06:11 +00:00
Pierre Ossman
6781628ebd
The Windows sound interface module.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@419 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 22:58:01 +00:00
Pierre Ossman
19d9fcbda8
Port to Windows. This is mostly glue layers for the poor POSIX support
...
on Windows. A few notes
* Only sockets behave somewhat like file descriptors in UNIX.
* There are no fixed paths. Closes thing is environment variables that point
to system directories. We also figure out where the binary/dll is
located and use that as configuration directory.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 22:51:37 +00:00
Pierre Ossman
2f74bb9d43
Protect pthread.h with an ifdef.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@417 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 22:44:23 +00:00
Pierre Ossman
bdc02f71f5
Protect sys/resource.h with an ifdef.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@416 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 22:42:26 +00:00
Pierre Ossman
67833c2bcf
Protect sched.h with ifdef.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@415 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-05 22:40:45 +00:00