Lennart Poettering
c75972f54a
move alsa-util.[ch], oss-util.[ch] and howl-wrap.[ch] to the modules directory since they are just helper source used exclusively by the modules
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@489 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 22:08:06 +00:00
Lennart Poettering
b56b9e50e0
* svn:ignore some files
...
* move configuration files to the directories they belong to
* built esd-compat.sh in the src/ dir
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@488 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 21:37:20 +00:00
Pierre Ossman
e205b25d65
Reorganised the source tree. We now have src/ with a couple of subdirs:
...
* daemon/ - Contains the files specific to the polypaudio daemon.
* modules/ - All loadable modules.
* polyp/ - Files that are part of the public, application interface or
are only used in libpolyp.
* polypcore/ - All other shared files.
* tests/ - Test programs.
* utils/ - Utility programs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@487 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 19:19:58 +00:00
Lennart Poettering
5b881e6228
add simple hardware auto detection module
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@486 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 01:17:30 +00:00
Lennart Poettering
6ad876efa8
Add HAVE_ALSA and HAVE_OSS defines
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@485 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 01:16:39 +00:00
Lennart Poettering
61fbafcb94
allow polypaudio to startup without any enabled module
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 01:16:02 +00:00
Lennart Poettering
a9950d4ab2
print ALSA error messages on failure
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@483 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 01:15:31 +00:00
Lennart Poettering
cc3fe432af
fix warning text
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@482 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-16 01:14:51 +00:00
Lennart Poettering
22e1f408a2
todo update
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@481 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-15 23:44:04 +00:00
Pierre Ossman
0f0fc32a6e
Fix api. Setting volume is done through a pa_cvolume struct, not a pa_volume_t
...
scalar.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@480 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-14 13:41:30 +00:00
Pierre Ossman
f77d5e14dc
Add function to "wake up", i.e. interrupt, a running poll(). This is needed
...
when having the poll() in a separate thread.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@479 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-13 13:37:22 +00:00
Pierre Ossman
bbaf1543bd
Split mainloop_iterate() into three, distinct parts. Allows for more flexible
...
use, like having the poll() run in a separate thread.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@478 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-13 13:28:45 +00:00
Pierre Ossman
4ab432a819
Fix some new alignment bugs in the tagstruct handling.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@477 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-10 12:05:33 +00:00
Pierre Ossman
8d91ffe4b4
Install the new headers for channels and volume.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@476 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-10 08:44:42 +00:00
Pierre Ossman
d9bfd5b294
Let's have just one endian conversion macro suite.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@475 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-03 14:39:39 +00:00
Pierre Ossman
5c01c1029f
Fix endian conversion macros and reformat them to be a bit more readable.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@474 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-03 14:36:19 +00:00
Pierre Ossman
d431e0094b
Use defines and not hard coded values for volume levels. Caused incorrect
...
volume levels for all esound clients that changed the volume.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@473 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-03 13:33:21 +00:00
Pierre Ossman
bbc6dd68e2
Volume adjustment must be done _after_ dropping the chunk since drop will
...
reject a modified chunk.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@472 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-03 12:23:17 +00:00
Pierre Ossman
c34f35a797
Reverting an incorrect checkin.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@471 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-02-03 09:14:30 +00:00
Pierre Ossman
dd7b38024a
Fixes for the new infrastructure so that the waveout module compiles.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@470 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-30 12:58:53 +00:00
Pierre Ossman
7da06d3fe7
Fixes for the new infrastructure so that the solaris module compiles.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@469 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-30 12:21:53 +00:00
Pierre Ossman
22db575adc
Breaks missing from conversion to a switch statement.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@468 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-30 11:49:03 +00:00
Pierre Ossman
f8808a2525
Print an error message before aborting.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@467 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-30 11:38:20 +00:00
Lennart Poettering
db6dc13e68
* add variadic function pa_tagstruct_get() and pa_tagstruct_put() for parsing/constructing tagstruct records
...
* convert some of the tagstruct uses to this new API
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@466 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-01-28 01:07:09 +00:00
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