summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* rework subscription code: try to drop redundant queued events Lennart Poettering2006-08-124-97/+129
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1211 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix a compiler warningLennart Poettering2006-08-121-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1210 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new macro PA_LLIST_INSERT_AFTERLennart Poettering2006-08-121-1/+18
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1209 fefdeb5f-60dc-0310-8127-8f9354f1896f
* increase module argument buffer size to prevent truncating namesShahms E. King2006-08-121-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1208 fefdeb5f-60dc-0310-8127-8f9354f1896f
* allow setting the null sink description by a module parameterLennart Poettering2006-08-121-3/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1206 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't set the sink/source descriptions manually, use the new functions ↵Lennart Poettering2006-08-1115-41/+69
| | | | | | pa_{sink,source}_set_description() instead git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1205 fefdeb5f-60dc-0310-8127-8f9354f1896f
* comment which values in pa_{sink,source,sink_input,source_output} structures ↵Lennart Poettering2006-08-114-34/+37
| | | | | | may be NULL git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1204 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * introduce new functions pa_sink_set_description() and ↵Lennart Poettering2006-08-114-10/+69
| | | | | | | | | pa_source_set_description() for changing the description of a sink/source * allow sinks without monitor sources attached git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1203 fefdeb5f-60dc-0310-8127-8f9354f1896f
* shorten sink/source device descriptions a littleLennart Poettering2006-08-114-6/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1201 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use the HAL UDI for naming input/output devicesLennart Poettering2006-08-111-4/+17
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1200 fefdeb5f-60dc-0310-8127-8f9354f1896f
* do not export name validity checking routes and apply them only to ↵Lennart Poettering2006-08-112-9/+6
| | | | | | sink/source names, not sample names git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1199 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix bad memory access and a leak when detructing ALSA fd listsLennart Poettering2006-08-111-2/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1198 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework name register a litle to only allow "valid" names.Lennart Poettering2006-08-112-33/+101
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1197 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove OSS specific code from module-hal-detect if HAVE_OSS is not set. Same ↵Lennart Poettering2006-08-111-10/+30
| | | | | | for ALSA git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1195 fefdeb5f-60dc-0310-8127-8f9354f1896f
* ALSA: handle write()/read() errors properly by unloading the driver module. ↵Lennart Poettering2006-08-112-50/+104
| | | | | | This should fix problems when removing USB audio device while pulseaudio is running. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1194 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change order of the ALSA event dispatch code to make sure that the code ↵Lennart Poettering2006-08-111-2/+2
| | | | | | survives if the event dispatcher frees the ALSA client git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use the copied udi string as hash key for the device table, because the ↵Lennart Poettering2006-08-111-1/+1
| | | | | | temporary one is freed when the function exits git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1192 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add HAL support for OSS devices and capability changesShahms E. King2006-08-081-60/+115
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1191 fefdeb5f-60dc-0310-8127-8f9354f1896f
* clean up hal patch to use pa_xnew and timeval compatibility wrappersShahms E. King2006-08-072-74/+28
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1190 fefdeb5f-60dc-0310-8127-8f9354f1896f
* try to reduce volume updates in the ALSA sinks/sources: only touch the ↵Lennart Poettering2006-08-072-22/+32
| | | | | | shadowed hw volme if necessary git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1189 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * add SVN $Id$ tagsLennart Poettering2006-08-063-1/+7
| | | | | | | * add a const git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1188 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge HAL support from Shams E. KingLennart Poettering2006-08-064-0/+903
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1187 fefdeb5f-60dc-0310-8127-8f9354f1896f
* implement "pactl move-source-output"Lennart Poettering2006-08-031-4/+20
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1185 fefdeb5f-60dc-0310-8127-8f9354f1896f
* implement pa_context_move_source_output_by_{name,index}()Lennart Poettering2006-08-032-0/+56
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1184 fefdeb5f-60dc-0310-8127-8f9354f1896f
* wrap pa_source_output_move_to() in the native protocolLennart Poettering2006-08-031-14/+35
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1183 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new CLI command move-source-output as wrapper around ↵Lennart Poettering2006-08-031-1/+41
| | | | | | pa_source_output_move_to() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1182 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Implement pa_source_input_move_to() for moving record streams between sourcesLennart Poettering2006-08-032-3/+77
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1181 fefdeb5f-60dc-0310-8127-8f9354f1896f
* - don't call pa_sink_notify in pa_sink_input_new() because the virtual ↵Lennart Poettering2006-08-031-4/+6
| | | | | | | | | methods are not yet initialized at this time - some minor cleanups git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1180 fefdeb5f-60dc-0310-8127-8f9354f1896f
* bump API and protocol version. Return PA_ERR_NOTSUPPORTED if ↵Lennart Poettering2006-08-015-3/+6
| | | | | | pa_context_move_sink_input_by_*()is called for servers that don't support it git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1179 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new "move-sink-input" command to pactlLennart Poettering2006-07-311-3/+20
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1178 fefdeb5f-60dc-0310-8127-8f9354f1896f
* wrap PA_COMMAND_MOVE_SINK_INPUT for libpulseLennart Poettering2006-07-312-0/+53
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1177 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new native protocol function for moving sink inputs between sinksLennart Poettering2006-07-311-1/+44
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1176 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new commands opcode for moving sink inputs and source outputsLennart Poettering2006-07-311-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1175 fefdeb5f-60dc-0310-8127-8f9354f1896f
* deal properly with recursive module unloadingLennart Poettering2006-07-311-0/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix bad memory access if a non-existing entry shall be removed from a ↵Lennart Poettering2006-07-311-0/+3
| | | | | | pa_idxset by index git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1173 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix module-gconf initializationLennart Poettering2006-07-291-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1172 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't hit an assetr if there are operations outstanding when the pa_context ↵Lennart Poettering2006-07-291-0/+4
| | | | | | is destroyed git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1171 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix two typos (pierre, have you been sleeping? next time please the comments ↵Lennart Poettering2006-07-291-2/+2
| | | | | | wrong but the code right, not the other way round! ;-)) git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1170 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new CLI function "move-sink-input" as wrapper around pa_sink_input_move_to()Lennart Poettering2006-07-291-2/+40
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1169 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * implement "hot" moving of playback streams between sinks ↵Lennart Poettering2006-07-292-6/+239
| | | | | | | | | (pa_sink_input_move_to()). * optimize the adjusting of the volume in pa_sink_input_peek() a little git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1168 fefdeb5f-60dc-0310-8127-8f9354f1896f
* free the memblockq if we decide not to play itLennart Poettering2006-07-291-2/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1167 fefdeb5f-60dc-0310-8127-8f9354f1896f
* if the memblockq is empty, return -1 in all casesLennart Poettering2006-07-291-0/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1166 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix calculation of pa_usec_to_bytes, to make sure that it never returns ↵Lennart Poettering2006-07-291-1/+1
| | | | | | fractions of a frame size git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1165 fefdeb5f-60dc-0310-8127-8f9354f1896f
* handle EOF correctly if it is read before the stream was createdLennart Poettering2006-07-291-9/+13
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1164 fefdeb5f-60dc-0310-8127-8f9354f1896f
* for the playing field of pa_timing_info use pa_sink_input::state == ↵Lennart Poettering2006-07-281-1/+1
| | | | | | PA_SINK_INPUT_RUNNING. This means that this variable will now refer to the current state and not to the expected future state, which is probably more what clients expect. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1163 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fold the seperate variable pa_sink_input::playing into pa_sink_input::state ↵Lennart Poettering2006-07-282-15/+18
| | | | | | | | | | as state PA_SINK_INPUT_DRAINED. The following mappings hold: old PA_SINK_RUNNING + playing set = new PA_SINK_RUNNING old PA_SINK_RUNNING + playing not set = new PA_SINK_DRAINED git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1162 fefdeb5f-60dc-0310-8127-8f9354f1896f
* introduce pa_play_memblockq() which creates a playback stream and passes the ↵Lennart Poettering2006-07-283-0/+151
| | | | | | data from the memblockq to it. after that is done, frees the memblockq git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1161 fefdeb5f-60dc-0310-8127-8f9354f1896f
* load module-gconf in default installLennart Poettering2006-07-271-1/+7
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1159 fefdeb5f-60dc-0310-8127-8f9354f1896f
* introduce three virtual sink/source names: @DEFAULT_SINK@, @DEFAULT_SOURCE@, ↵Lennart Poettering2006-07-271-2/+26
| | | | | | @DEFAULT_MONITOR@. Especially the latter is useful for connecting to the monitor source of the default sink. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1158 fefdeb5f-60dc-0310-8127-8f9354f1896f
* if possible do not unload already loaded modules when the gconf settings ↵Lennart Poettering2006-07-271-29/+71
| | | | | | change. instead try to reuse already loaded modules as much as possible git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1157 fefdeb5f-60dc-0310-8127-8f9354f1896f