Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Report the actual ALSA error if setting the buffer metrics fails | Chris Robinson | 2013-03-18 | 1 | -2/+2 |
| | |||||
* | Lock the device before calling aluHandleDisconnect | Chris Robinson | 2012-12-02 | 1 | -0/+4 |
| | | | | | | PulseAudio causes an assert if being relocked inside a callback on the worker thread, where aluHandleDisconnect is called. We can assume it's already locked there, so just make sure the device is locked before being calling it. | ||||
* | Don't include alu.h in alMain.h | Chris Robinson | 2012-09-14 | 1 | -0/+1 |
| | |||||
* | Free the global ALSA config after opening capture devices too | Chris Robinson | 2012-09-02 | 1 | -1/+4 |
| | |||||
* | alsa: Free the global config cache to remove a lot of reported leaks | Lauri Kasanen | 2012-09-02 | 1 | -0/+6 |
| | | | | Signed-off-by: Lauri Kasanen <[email protected]> | ||||
* | Print the error when reporting snd_pcm_delay failure | Chris Robinson | 2012-08-27 | 1 | -1/+1 |
| | |||||
* | Hold the device lock with ALSA between mixing and writing | Chris Robinson | 2012-08-18 | 1 | -0/+4 |
| | |||||
* | Use non-blocking access for ALSA playback | Chris Robinson | 2012-08-18 | 1 | -17/+37 |
| | |||||
* | Move the device lock into the backend function table | Chris Robinson | 2012-08-18 | 1 | -0/+2 |
| | | | | | For backend-specific implementations: this should hold the audio mixer loop for playback devices, and provide recursive mutex behavior. | ||||
* | Add a device method to retrieve the active latency | Chris Robinson | 2012-08-17 | 1 | -1/+20 |
| | | | | | This is effectively the time until the next update will be heard by the user, or the closest approximation thereof, in nanoseconds. | ||||
* | Avoid failing if ALSA can't set a buffer or period time near to our request | Chris Robinson | 2012-06-16 | 1 | -21/+2 |
| | | | | | | These functions should not fail, but there seem to be bugs that cause them to sometimes. We're flexible enough to handle almost anything it throws back at us though, so anything is better than nothing here. | ||||
* | Rename AllDevice -> AllDevices | Chris Robinson | 2012-05-09 | 1 | -1/+1 |
| | |||||
* | Clamp the ALSA period time between min and max if setting near fails | Chris Robinson | 2012-05-08 | 1 | -1/+17 |
| | |||||
* | Clamp the ALSA buffer time between min and max if setting near fails | Chris Robinson | 2012-05-07 | 1 | -1/+18 |
| | | | | | | It seems there's some bugs with snd_pcm_hw_params_set_buffer_time_near that cause it to return "invalid argument" despite a valid nearby buffer time being available. Clamping the buffer time seems to mitigate the issue a bit. | ||||
* | Remove some more hungarian notation | Chris Robinson | 2012-04-19 | 1 | -25/+25 |
| | |||||
* | Remove hungarian notation from the device and context structs | Chris Robinson | 2012-04-19 | 1 | -2/+2 |
| | |||||
* | Use a separate backend callback to start playback of the device | Chris Robinson | 2012-03-05 | 1 | -10/+39 |
| | | | | | | | | | | | | This allows us to properly update the ALCdevice and its resources with the new parameters before starting playback, instead of expecting the mixer to block and wait after it has begun. This also lets us avoid holding the device lock while resetting and starting the device, which helps prevent lock inversion on some backends (ie, one thread locking A then B, and another thread locking B then A), ultimately allowing certain backends to asynchronously update the ALCdevice without risk of lockup. Capture still has issues here, however. | ||||
* | Avoid an unnecessary doCapture check | Chris Robinson | 2012-03-01 | 1 | -2/+1 |
| | |||||
* | Fix a memory leak | Chris Robinson | 2012-03-01 | 1 | -0/+12 |
| | |||||
* | Avoid enumerating when opening the default ALSA device | Chris Robinson | 2012-03-01 | 1 | -18/+18 |
| | |||||
* | Don't define lib handles when dynamic loading is disabled | Chris Robinson | 2012-03-01 | 1 | -5/+3 |
| | |||||
* | Allow reading audio from ALSA directly if the requested length is supported | Chris Robinson | 2012-02-29 | 1 | -27/+142 |
| | |||||
* | Use a switch to handle the ALSA PCM state | Chris Robinson | 2012-02-27 | 1 | -10/+22 |
| | |||||
* | Print enumerated ALSA devices | Chris Robinson | 2012-02-26 | 1 | -1/+3 |
| | |||||
* | Remove an unneeded wrapper | Chris Robinson | 2012-02-22 | 1 | -10/+2 |
| | |||||
* | Set the default ALSA device name when probing | Chris Robinson | 2012-02-20 | 1 | -23/+20 |
| | |||||
* | Always use "OpenAL Soft" for the short device enumeration list | Chris Robinson | 2012-02-20 | 1 | -4/+0 |
| | |||||
* | Rename p -> hp for ALSA's hw params | Chris Robinson | 2012-02-20 | 1 | -36/+36 |
| | |||||
* | Add a COUNTOF macro to get the number of entries in a static array | Chris Robinson | 2012-02-19 | 1 | -2/+2 |
| | |||||
* | Make sure an ALSA capture device was found before accessing the map | Chris Robinson | 2012-02-18 | 1 | -1/+1 |
| | |||||
* | Simplify ALSA parameter error checking | Chris Robinson | 2012-02-18 | 1 | -108/+67 |
| | |||||
* | Rename a couple variables and fix their types | Chris Robinson | 2012-02-18 | 1 | -33/+33 |
| | |||||
* | Fix some comments | Chris Robinson | 2012-02-18 | 1 | -3/+4 |
| | |||||
* | Support signed and unsigned 32-bit int output | Chris Robinson | 2012-02-14 | 1 | -0/+14 |
| | |||||
* | Check for each ALSA prefix config option only as needed | Chris Robinson | 2012-02-13 | 1 | -22/+26 |
| | |||||
* | Add config options for card- and device-specific prefixes in ALSA device names | Chris Robinson | 2012-02-11 | 1 | -7/+17 |
| | |||||
* | Format the ALSA device name when enumerating them | Chris Robinson | 2012-02-11 | 1 | -35/+17 |
| | |||||
* | Improve checks for supported output formats from ALSA | Chris Robinson | 2012-02-09 | 1 | -19/+46 |
| | |||||
* | Improve a couple error messages with the full ALSA device control name | Chris Robinson | 2012-02-07 | 1 | -3/+3 |
| | |||||
* | Avoid printing messages about device parameter changes in the backends | Chris Robinson | 2012-01-17 | 1 | -17/+1 |
| | |||||
* | Reset the ALSA device if the number of available samples grows too large | Chris Robinson | 2011-11-28 | 1 | -2/+15 |
| | |||||
* | Make ALSA XRUN when the number of available samples exceeds the buffer size | Chris Robinson | 2011-11-28 | 1 | -0/+5 |
| | |||||
* | Add a ConfigValueStr function, to return the string through a parameter | Chris Robinson | 2011-09-19 | 1 | -9/+15 |
| | |||||
* | Check the number of available samples before calling the capture method | Chris Robinson | 2011-09-18 | 1 | -10/+7 |
| | |||||
* | Return an error from the CaptureSamples method instead of setting it | Chris Robinson | 2011-09-14 | 1 | -5/+5 |
| | |||||
* | Limit the minimum ALSA capture size to 100ms, and the maximum period size to ↵ | Chris Robinson | 2011-09-13 | 1 | -1/+7 |
| | | | | 50ms | ||||
* | Return an ALC error enum from the OpenCapture backend method | Chris Robinson | 2011-08-24 | 1 | -5/+5 |
| | |||||
* | Return an ALC error enum from the OpenPlayback backend method | Chris Robinson | 2011-08-24 | 1 | -4/+4 |
| | |||||
* | Move backend sources to a separate sub-directory | Chris Robinson | 2011-08-20 | 1 | -0/+1138 |