Commit graph

111 commits

Author SHA1 Message Date
Pierre Ossman
d9cc2cfcb9 Move xmalloc to the public side (libpolyp).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@908 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 16:34:18 +00:00
Lennart Poettering
1cfb01ab0e add proper locking when accessing the file match.table
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@906 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 15:21:34 +00:00
Lennart Poettering
e0bf4a32f3 add proper locking when accessing the file volume.table
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@905 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 15:21:08 +00:00
Lennart Poettering
270a409bf5 use PA_CHANNEL_MAP_OSS in module-oss, module-oss-mmap
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@896 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 13:09:46 +00:00
Pierre Ossman
71f681aa43 Set default channel map system for waveout module.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@891 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 06:58:58 +00:00
Pierre Ossman
05c1468520 Use default channel map for Solaris module. There doesn't seem to be a standard
for > 2 channels, so we'll have to rely on the user.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@889 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-17 06:31:18 +00:00
Lennart Poettering
4b6ab291a7 * modify pa_channel_map_init_auto() to take an extra argument specifying the standard to use (ALSA, AIFF, ...)
* add some more validity checks to pa_source_new(),pa_sink_new(),pa_sink_input_new(),pa_source_output_new()


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@888 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 23:47:38 +00:00
Lennart Poettering
724cd9d811 downgrade a log message
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@875 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-16 00:04:47 +00:00
Lennart Poettering
147da3e36f remove regex.h from include, since it is actually not used
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@869 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-15 12:33:43 +00:00
Lennart Poettering
d419d87a73 remove superfluous log line
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@864 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 16:17:38 +00:00
Lennart Poettering
b3e16559fc add new module module-volume-restore which saves and restores volume of playback streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@859 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 00:41:56 +00:00
Lennart Poettering
be05b18c6f * add new parameter to pa_open_config_file() to specify open mode
* modify pa_sink_input_new() to take initial volume settings as argument
* call pa_sink_input_set_volume() when changing stream volume in protocol-esound.c to make sure that subscribe events are issued properly


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@858 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-14 00:41:18 +00:00
Lennart Poettering
0f22d63289 * set default fragment metrics depending on the sample specs of the device in OSS and ALSA
* fix fragment size calculation in module-alsa-sink


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@855 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-13 21:20:34 +00:00
Lennart Poettering
0231e6ea41 first set buffer size, and afterwards period size
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@854 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-13 21:19:02 +00:00
Lennart Poettering
7abf17edcd fix fragment size calculation for module-alsa-source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@852 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-13 20:47:55 +00:00
Lennart Poettering
b6812029ba use default alsa channel map for alsa devices
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@851 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-13 20:29:32 +00:00
Pierre Ossman
c2c9f25100 Fix control flow in pa_oss_open(). Also fall back to half duplex when device doesn't
support full.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@826 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-05-02 11:27:24 +00:00
Pierre Ossman
6060bff186 When a control is removed, all bits are set so we need to test for that first.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@819 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-28 07:29:32 +00:00
Pierre Ossman
53930f4455 Zero the fd list since we do a memcmp on it later.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@818 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-28 07:28:48 +00:00
Pierre Ossman
99612dd88d Channel map argument support for solaris.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@815 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-27 05:41:18 +00:00
Pierre Ossman
0b95438f10 Channel map argument support for waveout.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@814 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-27 05:39:11 +00:00
Lennart Poettering
9564cefdbf fail if the channel map doesn't match the sample specs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@810 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 16:50:36 +00:00
Lennart Poettering
185a57cadd support new channel_map argument in sink/source modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@803 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-26 15:40:14 +00:00
Pierre Ossman
69096f2753 Fall back to software volume if hardware mixer cannot control all channels.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@796 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-25 07:54:49 +00:00
Lennart Poettering
820c118f9c * rework reference counting in the client libraries: now refcounting goes
strictly "one-way" - the "bigger" object refcounts the "smaller" one, never the
  other way round. 

* when registering for a reply packet in pdispatch, specify a function that is
  called when the pdispatch object is destroyed but the reply hasn't yet been
  recieved.

* move prototype of pa_free_cb from stream.h to def.h 



git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@794 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-24 19:29:15 +00:00
Lennart Poettering
335e23473f * when playing back a sample from the sample cache, just take a pa_volume_t and not a pa_cvolume_t as argument for the volume. Usually it is not known to the player of theses samples how many channels it has, hence it doesn't make any sense to allow him to pass a by-channel volume structure here.
* fix volume calculation when playing samples from the sample cache


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@784 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-23 19:49:01 +00:00
Lennart Poettering
f6fc410a96 modify x11 modules to not cache the Display variable since pa_x11wrap_get_display() is now used as notification that the x11 output buffer needs flushing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@778 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-22 21:51:30 +00:00
Lennart Poettering
0e02e844a2 * for unix sockets: remove the right parent directory on shutdown
* other cleanups


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@774 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-22 20:06:48 +00:00
Pierre Ossman
e4b53b2bad Tweaks for the solaris module. The sound system requires complete frames
to be written. Also, the sample counter can magically go backwards sometimes,
causing havoc with our buffer handling.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@762 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-19 15:37:52 +00:00
Pierre Ossman
989fa585b2 Sun's documentation about SIGPOLL on EOF:s is wrong, so use a timer based
solution instead.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@761 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-19 14:30:42 +00:00
Pierre Ossman
e1513ce684 WaveOut needs to have rather large chunks. This is about as low as we can
go without getting underflows.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@759 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-19 11:55:46 +00:00
Pierre Ossman
4bb5822618 Reverse order of IPv6/IPv4 binding to handle systems without IPV6_V6ONLY.
System that always do IPV6_V6ONLY will now still bind to both sockets, just
in another order.

System that never do IPV6_V6ONLY will now fail to bind IPv4 instead of IPv6.
But since they force IPv6 sockets to accept IPv4 connections, everything is
peachy anyway.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@756 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-19 07:31:11 +00:00
Lennart Poettering
494f602074 make proper use of the muting facility of sinks in module-mmkbd-evdev
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@755 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 19:44:50 +00:00
Lennart Poettering
746adcfed5 fix a couple of issues I found when compiling polypaudio with gcc 2.95
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 19:31:50 +00:00
Lennart Poettering
a5100be083 fix connecting of jack source in jack daemon
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@748 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 17:20:05 +00:00
Pierre Ossman
074b7c1df1 More fixes caused by Sun's complete inability to follow any standard
whatsoever.


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@742 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 14:09:56 +00:00
Lennart Poettering
abea726d16 add a jack source module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@738 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 13:22:41 +00:00
Lennart Poettering
cf85794e23 * allow the user to set the jack client name
* take the number of channels for the sink from the number of physical ports in the jack server
* name the polypaudio ports in the jack server after their channel position in polypaudio


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@737 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 13:20:50 +00:00
Pierre Ossman
8b99a067a8 C99 requires explicit marking of integer literals' size.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@736 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-18 12:46:03 +00:00
Lennart Poettering
4482e6867d add new JACK sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@735 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-17 00:11:04 +00:00
Lennart Poettering
a8bb073acc properly initialize session counter
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@732 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 16:45:47 +00:00
Lennart Poettering
2f3fa42ca6 limit number of concurrent RTP streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@730 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 12:44:43 +00:00
Lennart Poettering
08397d98e2 fix typo in module description
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@729 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 12:44:15 +00:00
Lennart Poettering
e1887b552c change default mcast address once again, to make sure our traffic doesn't leave the network by default
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@728 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 11:13:20 +00:00
Lennart Poettering
b04a4e65ca rename module-rtp-monitor to module-rtp-send
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@726 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 10:56:45 +00:00
Lennart Poettering
3b803e7168 * make sure RTP ports are chosen to be even
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@725 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 10:53:27 +00:00
Pierre Ossman
e75cc68685 Fix ALSA fd handling to be compatible with blocking deferred events.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@724 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 09:23:27 +00:00
Lennart Poettering
c999fe40b8 * deal properly with underruns, overflows and packet losses
* change default mcast address
* detect RTP loops


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@722 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 09:15:51 +00:00
Lennart Poettering
67b105bd7a * increase default MTU
* change default mcast address to 224.0.1.3
* randomize RTP ports by default


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@721 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 09:14:55 +00:00
Lennart Poettering
998affc984 replace homegrown endswith() with pa_endswith() from util.h
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@720 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-04-16 09:13:41 +00:00