platform/upstream/pulseaudio.git
18 years agoDetect support for Solaris (/dev/audio).
Pierre Ossman [Mon, 20 Feb 2006 12:42:28 +0000 (12:42 +0000)]
Detect support for Solaris (/dev/audio).

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@516 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoRemove a debug fprintf that was left in.
Pierre Ossman [Mon, 20 Feb 2006 10:40:40 +0000 (10:40 +0000)]
Remove a debug fprintf that was left in.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@515 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoutil.c uses some socket functions so we need winsock on Windows.
Pierre Ossman [Mon, 20 Feb 2006 10:38:57 +0000 (10:38 +0000)]
util.c uses some socket functions so we need winsock on Windows.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@514 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate TODO
Lennart Poettering [Mon, 20 Feb 2006 04:06:13 +0000 (04:06 +0000)]
update TODO

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@513 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake doxygen ignore PA_CDECL_BEGIN/PA_CDECL_END
Lennart Poettering [Mon, 20 Feb 2006 04:05:59 +0000 (04:05 +0000)]
make doxygen ignore PA_CDECL_BEGIN/PA_CDECL_END

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@512 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years ago1) Add flexible seeking support (including absolute) for memory block queues and...
Lennart Poettering [Mon, 20 Feb 2006 04:05:16 +0000 (04:05 +0000)]
1) Add flexible seeking support (including absolute) for memory block queues and playback streams
2) Add support to synchronize multiple playback streams
3) add two tests for 1) and 2)
4) s/PA_ERROR/PA_ERR/
5) s/PA_ERROR_OK/PA_OK/
6) update simple API to deal properly with new peek/drop recording API
7) add beginnings of proper validity checking on API calls in client libs (needs to be extended)
8) report playback buffer overflows/underflows to the client
9) move client side recording mcalign stuff into the memblockq
10) create typedefs for a bunch of API callback prototypes
11) simplify handling of HUP poll() events

Yes, i know, it's usually better to commit a lot of small patches instead of a
single big one. In this case however, this would have contradicted the other
rule: never commit broken or incomplete stuff.

*** This stuff needs a lot of additional testing! ***

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@511 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 18 Feb 2006 14:58:25 +0000 (14:58 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@510 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoProperly clear members during init.
Pierre Ossman [Fri, 17 Feb 2006 17:00:33 +0000 (17:00 +0000)]
Properly clear members during init.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@509 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoThat's a delta parameter, not a size parameter.
Pierre Ossman [Fri, 17 Feb 2006 16:48:44 +0000 (16:48 +0000)]
That's a delta parameter, not a size parameter.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@508 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoHave a memblock queue on the client side during recording. This makes the
Pierre Ossman [Fri, 17 Feb 2006 15:42:47 +0000 (15:42 +0000)]
Have a memblock queue on the client side during recording. This makes the
record callback optional in stead of mandatory.

For applications that wish to retain the old behaviour, simply call
pa_stream_peek() followed by pa_stream_drop() in the callback.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@507 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoIgnore generated win32 binaries.
Pierre Ossman [Fri, 17 Feb 2006 13:20:09 +0000 (13:20 +0000)]
Ignore generated win32 binaries.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@506 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoModule needs stuff in libpolypcore.
Pierre Ossman [Fri, 17 Feb 2006 13:18:53 +0000 (13:18 +0000)]
Module needs stuff in libpolypcore.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@505 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix path to poll.h.
Pierre Ossman [Fri, 17 Feb 2006 13:18:30 +0000 (13:18 +0000)]
Fix path to poll.h.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@504 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix typo in #ifndef.
Pierre Ossman [Fri, 17 Feb 2006 13:11:37 +0000 (13:11 +0000)]
Fix typo in #ifndef.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@503 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoIntegrate error routines into libpolyp. Not much point in having this as a
Pierre Ossman [Fri, 17 Feb 2006 13:08:03 +0000 (13:08 +0000)]
Integrate error routines into libpolyp. Not much point in having this as a
separate library.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@502 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMake sure that all polypcore headers are installed.
Pierre Ossman [Fri, 17 Feb 2006 12:34:44 +0000 (12:34 +0000)]
Make sure that all polypcore headers are installed.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@501 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoCleaned up the includes after the restructuring. Indicate which headers are
Pierre Ossman [Fri, 17 Feb 2006 12:10:58 +0000 (12:10 +0000)]
Cleaned up the includes after the restructuring. Indicate which headers are
public and which are internal through <> vs "".

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@500 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMove the util libs to the modules section since they're in that directory.
Pierre Ossman [Fri, 17 Feb 2006 09:12:06 +0000 (09:12 +0000)]
Move the util libs to the modules section since they're in that directory.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@499 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix doxygen
Lennart Poettering [Fri, 17 Feb 2006 00:11:54 +0000 (00:11 +0000)]
fix doxygen

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@498 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoinclude header files in simple.h with <> instead of ""
Lennart Poettering [Thu, 16 Feb 2006 23:48:41 +0000 (23:48 +0000)]
include header files in simple.h with <> instead of ""

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@497 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years ago* rename polypcore/subscribe.[ch] to polypcore/core-subscribe.[ch] to avoid confusion...
Lennart Poettering [Thu, 16 Feb 2006 23:13:27 +0000 (23:13 +0000)]
* rename polypcore/subscribe.[ch] to polypcore/core-subscribe.[ch] to avoid confusion with polyp/subscribe.[ch]
* same for scache.[ch]

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@496 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoshorten include list of utils a little
Lennart Poettering [Thu, 16 Feb 2006 23:12:10 +0000 (23:12 +0000)]
shorten include list of utils a little

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@495 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years ago* drop polylib prefix from #define
Lennart Poettering [Thu, 16 Feb 2006 23:11:28 +0000 (23:11 +0000)]
* drop polylib prefix from #define
* include error.h from polypaudio.h

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@494 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix compilation of simple API
Lennart Poettering [Thu, 16 Feb 2006 23:10:33 +0000 (23:10 +0000)]
fix compilation of simple API

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@493 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodrop polyplib- prefix from client library files
Lennart Poettering [Thu, 16 Feb 2006 22:43:59 +0000 (22:43 +0000)]
drop polyplib- prefix from client library files

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@492 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake channel naming somewhat RFC2551 compliant
Lennart Poettering [Thu, 16 Feb 2006 22:34:52 +0000 (22:34 +0000)]
make channel naming somewhat RFC2551 compliant

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@491 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd a bunch of simple Makefile in the subdirs, just to make compilation with emacs...
Lennart Poettering [Thu, 16 Feb 2006 22:11:35 +0000 (22:11 +0000)]
add a bunch of simple Makefile in the subdirs, just to make compilation with emacs easier

they are not intended to be distributed or anything.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@490 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomove alsa-util.[ch], oss-util.[ch] and howl-wrap.[ch] to the modules directory since...
Lennart Poettering [Thu, 16 Feb 2006 22:08:06 +0000 (22:08 +0000)]
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

18 years ago* svn:ignore some files
Lennart Poettering [Thu, 16 Feb 2006 21:37:20 +0000 (21:37 +0000)]
* 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

18 years agoReorganised the source tree. We now have src/ with a couple of subdirs:
Pierre Ossman [Thu, 16 Feb 2006 19:19:58 +0000 (19:19 +0000)]
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

18 years agoadd simple hardware auto detection module
Lennart Poettering [Thu, 16 Feb 2006 01:17:30 +0000 (01:17 +0000)]
add simple hardware auto detection module

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@486 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoAdd HAVE_ALSA and HAVE_OSS defines
Lennart Poettering [Thu, 16 Feb 2006 01:16:39 +0000 (01:16 +0000)]
Add HAVE_ALSA and HAVE_OSS defines

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@485 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoallow polypaudio to startup without any enabled module
Lennart Poettering [Thu, 16 Feb 2006 01:16:02 +0000 (01:16 +0000)]
allow polypaudio to startup without any enabled module

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@484 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoprint ALSA error messages on failure
Lennart Poettering [Thu, 16 Feb 2006 01:15:31 +0000 (01:15 +0000)]
print ALSA error messages on failure

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@483 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix warning text
Lennart Poettering [Thu, 16 Feb 2006 01:14:51 +0000 (01:14 +0000)]
fix warning text

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@482 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agotodo update
Lennart Poettering [Wed, 15 Feb 2006 23:44:04 +0000 (23:44 +0000)]
todo update

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@481 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFix api. Setting volume is done through a pa_cvolume struct, not a pa_volume_t
Pierre Ossman [Tue, 14 Feb 2006 13:41:30 +0000 (13:41 +0000)]
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

18 years agoAdd function to "wake up", i.e. interrupt, a running poll(). This is needed
Pierre Ossman [Mon, 13 Feb 2006 13:37:22 +0000 (13:37 +0000)]
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

18 years agoSplit mainloop_iterate() into three, distinct parts. Allows for more flexible
Pierre Ossman [Mon, 13 Feb 2006 13:28:45 +0000 (13:28 +0000)]
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

18 years agoFix some new alignment bugs in the tagstruct handling.
Pierre Ossman [Fri, 10 Feb 2006 12:05:33 +0000 (12:05 +0000)]
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

18 years agoInstall the new headers for channels and volume.
Pierre Ossman [Fri, 10 Feb 2006 08:44:42 +0000 (08:44 +0000)]
Install the new headers for channels and volume.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@476 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoLet's have just one endian conversion macro suite.
Pierre Ossman [Fri, 3 Feb 2006 14:39:39 +0000 (14:39 +0000)]
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

18 years agoFix endian conversion macros and reformat them to be a bit more readable.
Pierre Ossman [Fri, 3 Feb 2006 14:36:19 +0000 (14:36 +0000)]
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

18 years agoUse defines and not hard coded values for volume levels. Caused incorrect
Pierre Ossman [Fri, 3 Feb 2006 13:33:21 +0000 (13:33 +0000)]
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

18 years agoVolume adjustment must be done _after_ dropping the chunk since drop will
Pierre Ossman [Fri, 3 Feb 2006 12:23:17 +0000 (12:23 +0000)]
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

18 years agoReverting an incorrect checkin.
Pierre Ossman [Fri, 3 Feb 2006 09:14:30 +0000 (09:14 +0000)]
Reverting an incorrect checkin.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@471 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoFixes for the new infrastructure so that the waveout module compiles.
Pierre Ossman [Mon, 30 Jan 2006 12:58:53 +0000 (12:58 +0000)]
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

18 years agoFixes for the new infrastructure so that the solaris module compiles.
Pierre Ossman [Mon, 30 Jan 2006 12:21:53 +0000 (12:21 +0000)]
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

18 years agoBreaks missing from conversion to a switch statement.
Pierre Ossman [Mon, 30 Jan 2006 11:49:03 +0000 (11:49 +0000)]
Breaks missing from conversion to a switch statement.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@468 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoPrint an error message before aborting.
Pierre Ossman [Mon, 30 Jan 2006 11:38:20 +0000 (11:38 +0000)]
Print an error message before aborting.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@467 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years ago* add variadic function pa_tagstruct_get() and pa_tagstruct_put() for parsing/constru...
Lennart Poettering [Sat, 28 Jan 2006 01:07:09 +0000 (01:07 +0000)]
* 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

18 years agoadd support more for up to 16 auxiliary channel positions
Lennart Poettering [Fri, 27 Jan 2006 16:30:09 +0000 (16:30 +0000)]
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

18 years agoMega patch:
Lennart Poettering [Fri, 27 Jan 2006 16:25:31 +0000 (16:25 +0000)]
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

18 years agoRemove the version number from the module directory. Makes life easier
Pierre Ossman [Fri, 27 Jan 2006 14:52:17 +0000 (14:52 +0000)]
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

18 years agoWe get the -lcap through LIBS, so no need for CAP_LIBS.
Pierre Ossman [Wed, 25 Jan 2006 17:27:10 +0000 (17:27 +0000)]
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

18 years agoUse AC_SEARCH_LIBS instead of AC_CHECK_LIBS since it is a lot smarter and
Pierre Ossman [Wed, 25 Jan 2006 17:25:28 +0000 (17:25 +0000)]
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

18 years agoFix so that peer name can be determined on Windows. We do not support console
Pierre Ossman [Fri, 20 Jan 2006 10:16:37 +0000 (10:16 +0000)]
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

18 years agoOpen the device in non-blocking mode.
Pierre Ossman [Thu, 19 Jan 2006 10:26:06 +0000 (10:26 +0000)]
Open the device in non-blocking mode.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@458 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoUgly hack to get around Solaris particularly brain dead sound system.
Pierre Ossman [Thu, 19 Jan 2006 10:24:49 +0000 (10:24 +0000)]
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

18 years agoWe need a logical, not an arithmetic shift here. So use unsigned types when
Pierre Ossman [Mon, 16 Jan 2006 13:35:25 +0000 (13:35 +0000)]
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

18 years agoUnder win32 we freed the wrong pointer causing a segmentation fault.
Pierre Ossman [Thu, 12 Jan 2006 17:12:44 +0000 (17:12 +0000)]
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

18 years agoSome crappy hardware generate noise on the output when reading input. To
Pierre Ossman [Thu, 12 Jan 2006 16:11:54 +0000 (16:11 +0000)]
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

18 years agoSome drivers (via82xx) doesn't start recording until we read something.
Pierre Ossman [Thu, 12 Jan 2006 16:09:58 +0000 (16:09 +0000)]
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

18 years agoUsed 0 as an invalid fd. Changed to -1.
Pierre Ossman [Thu, 12 Jan 2006 16:08:14 +0000 (16:08 +0000)]
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

18 years agoIf the card couldn't do duplex when required we would incorrectly return
Pierre Ossman [Thu, 12 Jan 2006 16:04:21 +0000 (16:04 +0000)]
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

18 years agoMany (FSF and Sun at least) have interpreted the C99 standard in a way
Pierre Ossman [Wed, 11 Jan 2006 14:36:02 +0000 (14:36 +0000)]
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

18 years agoRemove the old compiler flag test now that we have a new shiny one.
Pierre Ossman [Wed, 11 Jan 2006 14:13:28 +0000 (14:13 +0000)]
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

18 years agoOur makefiles work just fine on older automakes (1.7 tested). Let's keep
Pierre Ossman [Wed, 11 Jan 2006 14:12:38 +0000 (14:12 +0000)]
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

18 years ago* remove a lot of compiler warnings introduced by using some new GCC flags
Lennart Poettering [Wed, 11 Jan 2006 01:17:39 +0000 (01:17 +0000)]
* 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

18 years agobuild system updates, including support for some newer GCC options
Lennart Poettering [Tue, 10 Jan 2006 18:04:54 +0000 (18:04 +0000)]
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

18 years agoMerge Pierre's changes
Lennart Poettering [Tue, 10 Jan 2006 17:51:06 +0000 (17:51 +0000)]
Merge Pierre's changes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@445 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoimprove sync clock change
Lennart Poettering [Mon, 9 Jan 2006 12:38:06 +0000 (12:38 +0000)]
improve sync clock change

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@426 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agofix synchronized clock change
Lennart Poettering [Mon, 9 Jan 2006 12:37:17 +0000 (12:37 +0000)]
fix synchronized clock change

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@425 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agofix alsa memory leak
Lennart Poettering [Fri, 16 Sep 2005 00:11:48 +0000 (00:11 +0000)]
fix alsa memory leak

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@360 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agochance ALSA sink to use "default" as default alsa device
Lennart Poettering [Fri, 16 Sep 2005 00:11:15 +0000 (00:11 +0000)]
chance ALSA sink to use "default" as default alsa device

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@359 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoinitialize running_as_daemon
Lennart Poettering [Fri, 16 Sep 2005 00:09:19 +0000 (00:09 +0000)]
initialize running_as_daemon

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@358 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoincrease number of allowed connections
Lennart Poettering [Fri, 16 Sep 2005 00:08:53 +0000 (00:08 +0000)]
increase number of allowed connections

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@357 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoadd new field running_as_daemon to pa_core
Lennart Poettering [Fri, 16 Sep 2005 00:08:02 +0000 (00:08 +0000)]
add new field running_as_daemon to pa_core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@356 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoadd pa_sound_file_too_big_to_cache()
Lennart Poettering [Fri, 16 Sep 2005 00:04:29 +0000 (00:04 +0000)]
add pa_sound_file_too_big_to_cache()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@355 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agohandle float values in sound files sensibly
Lennart Poettering [Fri, 16 Sep 2005 00:03:19 +0000 (00:03 +0000)]
handle float values in sound files sensibly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@354 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoprint a nice message when libltdl is missing
Lennart Poettering [Fri, 16 Sep 2005 00:02:10 +0000 (00:02 +0000)]
print a nice message when libltdl is missing

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@353 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agogit-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@352 fefdeb5f-60dc-0310...
Lennart Poettering [Fri, 16 Sep 2005 00:01:20 +0000 (00:01 +0000)]
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@352 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agobuild fix
Lennart Poettering [Fri, 16 Sep 2005 00:00:59 +0000 (00:00 +0000)]
build fix

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@351 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agobail out if no sink is defined
Lennart Poettering [Fri, 16 Sep 2005 00:00:39 +0000 (00:00 +0000)]
bail out if no sink is defined

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@350 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoalter alsa periods number
Lennart Poettering [Thu, 15 Sep 2005 23:50:33 +0000 (23:50 +0000)]
alter alsa periods number

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@349 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agohandle EOF in ioline.c
Lennart Poettering [Thu, 15 Sep 2005 23:50:05 +0000 (23:50 +0000)]
handle EOF in ioline.c

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@348 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoremove esound protocol directory on unload of module-protocol-esound
Lennart Poettering [Thu, 15 Sep 2005 23:48:09 +0000 (23:48 +0000)]
remove esound protocol directory on unload of module-protocol-esound

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@347 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agofix start_timeout()
Lennart Poettering [Thu, 15 Sep 2005 23:47:01 +0000 (23:47 +0000)]
fix start_timeout()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@346 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoadd libsamplerate/libsndfile CFLAGS
Lennart Poettering [Thu, 15 Sep 2005 23:46:39 +0000 (23:46 +0000)]
add libsamplerate/libsndfile CFLAGS

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@345 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* fix LIRC configuration
Lennart Poettering [Wed, 12 Jan 2005 20:22:08 +0000 (20:22 +0000)]
* fix LIRC configuration

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@341 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* extend HTTP module
Lennart Poettering [Wed, 12 Jan 2005 18:51:38 +0000 (18:51 +0000)]
* extend HTTP module

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@340 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* make pa_sample_spec_snprint return point to written string
Lennart Poettering [Wed, 12 Jan 2005 17:37:31 +0000 (17:37 +0000)]
* make pa_sample_spec_snprint return point to written string
* first try of a http module

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@339 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* new environment variable $POLYP_LOG
Lennart Poettering [Tue, 11 Jan 2005 20:47:10 +0000 (20:47 +0000)]
* new environment variable $POLYP_LOG
* fix connection establishing algorithm
* add timeout for establishing connections
* add fqdn to the server directive to connect to in browse API
* quieten ESOUND protocol

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@338 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* add new module module-mmkbd-evdev
Lennart Poettering [Sun, 9 Jan 2005 01:11:53 +0000 (01:11 +0000)]
* add new module module-mmkbd-evdev
* fix stupid error message in main.c

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@337 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* todo update
Lennart Poettering [Sat, 8 Jan 2005 22:32:53 +0000 (22:32 +0000)]
* todo update
* lirc warning fix
* c++ compat

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@336 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* increase timeout in pacmd
Lennart Poettering [Sat, 8 Jan 2005 21:43:30 +0000 (21:43 +0000)]
* increase timeout in pacmd

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@335 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* make lirc program name configurable
Lennart Poettering [Sat, 8 Jan 2005 21:40:25 +0000 (21:40 +0000)]
* make lirc program name configurable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@334 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years ago* add new module for LIRC volume control
Lennart Poettering [Sat, 8 Jan 2005 21:36:53 +0000 (21:36 +0000)]
* add new module for LIRC volume control

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@333 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agochange doxygen build stuff for better compat with moderm automakes
Lennart Poettering [Sat, 8 Jan 2005 01:19:34 +0000 (01:19 +0000)]
change doxygen build stuff for better compat with moderm automakes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@332 fefdeb5f-60dc-0310-8127-8f9354f1896f

19 years agoupdate todo list
Lennart Poettering [Sat, 8 Jan 2005 01:16:41 +0000 (01:16 +0000)]
update todo list

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@331 fefdeb5f-60dc-0310-8127-8f9354f1896f