aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * A dash of color...Dave Reisner2013-01-021-6/+85
| |
| * fix abort on set-profile after removing profileDave Reisner2013-01-021-0/+4
| | | | | | | | | | | | ponymix set-profile off ponymix set-profile output:stereo-da+input:stereo-analog <kaboom>
| * whitespace policeDave Reisner2013-01-021-24/+24
| |
| * remove string_to_device; PulseClient can do this nowDave Reisner2013-01-021-21/+6
| |
| * always defined behaviors for devicesDave Reisner2013-01-021-0/+6
| |
| * Derive the card from the targetted deviceDave Reisner2013-01-023-8/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unless explicitly specified, target a card based on the selected device. Note that not all devices will be tied to a card. falconindy » put differently, if i have multiple cards, what determines which card is used by pulse for a given app? tanuk » In theory, the logic can be anything (it depends on what policy-implementing modules are loaded). By default, routing is mostly handled by module-stream-restore, which chooses the sink based on the user's previous routing choices. tanuk » If the user hasn't done any routing choices, the fallback logic is to select the current "default sink". tanuk » I don't recommend trying to guess the routing policy. falconindy » i guess my understanding of pulse internals is lacking falconindy » but that's rather enlightening falconindy » is there any way to figure out the connection between a sink and a card? tanuk » Yes... (One moment, I'll look up things.) falconindy » ah. uint32_t card falconindy » appears to be in pa_sink_info falconindy » so that ties the sink to the index of a card? tanuk » Yep. falconindy » awesome, that's good enough for what i need to do tanuk » Not all sinks are part of a card, though, but those that are will have the card index set. falconindy » also good to know
| * ponymix: validate arg count before invoking functionDave Reisner2013-01-023-131/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few changes make this fun and easy: - Merge the function array into the string to action lookup and return a Command instead of simply an enum. A Command is the function and the min/max arg count. - Implement an InRange method for the Range class. - Add a Dispatch function to convert the string to Command and validate the arguments. This leaves us in a position where the argc parameter to each method is never used, but maybe some day a command will be added that takes a range of args rather than a fixed number.
| * rename class Pulse to PulseClientDave Reisner2013-01-023-63/+63
| |
| * makefile: CFLAGS -> CXXFLAGSDave Reisner2013-01-011-4/+10
| |
| * eschew _unused_ attributeDave Reisner2013-01-011-18/+14
| |
| * alias sane types to --device flagsDave Reisner2013-01-011-9/+35
| |
| * maybe fix app mode?Dave Reisner2013-01-011-1/+16
| | | | | | | | | | | | | | A sources-output can only be moved to a new source, and a sink-input can only be moved to a new sink. So, derive the target type based on this. Also, reroute sink -> sink-input and source -> source-output to save some keystrokes.
| * action, not optionDave Reisner2013-01-011-3/+4
| |
| * oopsDave Reisner2013-01-011-4/+4
| |
| * fix null constructionsDave Reisner2013-01-011-6/+12
| |
| * initial commitDave Reisner2013-01-014-0/+1319
|
* WIP support for card profilesDave Reisner2012-12-301-19/+72
|
* fix another possible NULL strdupDave Reisner2012-12-241-2/+3
|
* avoid crash on sinks without names (loopbacks?)Dave Reisner2012-12-241-1/+1
|
* avoid segfault on empty application nameDave Reisner2012-12-051-2/+4
|
* fix totally backwards strstr matchingDave Reisner2012-10-051-6/+6
| | | | | | This never could have worked except on exact matches. The arguments to strstr were reversed, and barring that, interesting results were filtered OUT.
* update usage for --output/--inputDave Reisner2012-10-011-1/+3
|
* support searching across sinks/sourcesSimon Gomizelj2012-10-011-49/+72
| | | | | Pulseaudio likes to give long and verbose names to devices and doesn't let you specify applications by name.
* add --input/--output as an alternative flags.Simon Gomizelj2012-10-012-2/+4
| | | | | Input/output make more sense for applications, where the pulseaudio sink/source may feel backwards
* change application pretty print namesSimon Gomizelj2012-10-011-2/+2
| | | | | Its kinda counter intuitive to label application outputs as sinks and inputs as sources.
* fix whitespace in usage()Dave Reisner2012-09-291-4/+4
|
* Merge remote-tracking branch 'johnf/master'Dave Reisner2012-09-292-4/+4
|\ | | | | | | | | * johnf/master: clarify -o and -i usage
| * clarify -o and -i usageJonathan Frazier2012-09-292-4/+4
| |
* | denote that "defaults" is the default commandDave Reisner2012-09-271-1/+1
| |
* | use the full field initializer for argDave Reisner2012-09-181-1/+1
|/
* add check for mode to action_tSimon Gomizelj2012-09-181-19/+23
|
* collect state and arguments, restructureSimon Gomizelj2012-09-181-104/+128
| | | | | | | | Collect all state into struct runtime_t, all arguments into struct arg_t. This simplifies argument passing so we can split device loading into a helper function and restructure main into something much cleaner.
* move to a proper list implementationSimon Gomizelj2012-09-181-107/+101
| | | | | | | Build a proper doubly linked list of devices so that they don't get listed in backwards order. Also compute default sink and source names in pulse_init.
* remove success from pulseaudio_tSimon Gomizelj2012-09-121-21/+26
|
* stop stuffing things in globalsSimon Gomizelj2012-09-121-86/+95
| | | | | Have the various sink and source getters return a list of items rather than stuffing the results in pulseaudio_t.
* Merge pull request #4 from vodik/bugfixesDave Reisner2012-09-061-1/+6
|\ | | | | Bugfixes
| * increase shouldn't ever lower volumeSimon Gomizelj2012-08-231-0/+5
| | | | | | | | | | Due to the CLAMP, if you set the volume above 100 and invoke increase, it'll drop back down to 100. It probably shouldn't do this.
| * default actions are backwardsSimon Gomizelj2012-08-231-1/+1
| |
* | use LDLIBS for added library depsDave Reisner2012-08-211-1/+1
|/
* expand color spectrumDave Reisner2012-08-151-6/+29
|
* fix invalid memory accessDave Reisner2012-08-141-1/+1
|
* colorize pretty printed outputSimon Gomizelj2012-08-141-5/+50
| | | | | | | | | | | | | | | | | | | | | .,,. ,;;*;;;;, .-'``;-');;. /' .-. /*;; .' \d \;; .;;;, / o ` \; ,__. ,;*;;;*;, \__, _.__,' \_.-') __)--.;;;;;*;;;;, `""`;;;\ /-')_) __) `\' ';;;;;; ;*;;; -') `)_) |\ | ;;;;*; ;;;;| `---` O | | ;;*;;; *;*;\| O / ;;;;;* ;;;;;/| .-------\ / ;*;;;;; ;;;*;/ \ | '. (`. ;;;*;;; ;;;;;'. ; | ) \ | ;;;;;; ,;*;;;;\/ |. / /` | ';;;*; ;;;;;;/ |/ / /__/ ';;; '*jgs/ | / | ;*; `""""` `""""` ;'
* fix (null) string on unknown actionDave Reisner2012-08-141-1/+1
|
* s/state_cb/connect_&/Dave Reisner2012-08-141-2/+2
|
* avoid reinventing wrapper around PA_CONTEXT_*Dave Reisner2012-08-141-20/+5
|
* remove connectstate from pulseaudio_tDave Reisner2012-08-141-28/+17
| | | | | this isn't needed outside of the conneciton logic, so there's no point in making room for it on the heap for the whole process.
* fix option handling. oopsDave Reisner2012-08-141-5/+7
|
* move toggle tests until after mute state is guaranteedDave Reisner2012-08-141-2/+2
| | | | This test rig sucks.
* validate argument count with string -> enum conversionDave Reisner2012-08-142-37/+34
|
* with a better project name, we need a better PA nameDave Reisner2012-08-141-1/+1
|