aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_internal.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output_api: no CamelCase in struct audio_outputMax Kellermann2009-02-101-6/+6
| | | | Renamed audio_output struct members.
* output_internal: added missing output_api.h includeMax Kellermann2009-02-101-0/+1
| | | | output_api.h is required for enum audio_output_command.
* pcm_convert: return PCM buffer from pcm_convert()Max Kellermann2009-01-171-2/+0
| | | | | | Removed yet another superfluous buffer layer: return the PCM buffer from pcm_convert() instead of copying PCM data into the caller-supplied buffer.
* pcm_utils: moved conversion code to pcm_convert.cMax Kellermann2009-01-071-1/+1
| | | | | All what's left in pcm_utils.h is the pcm_range() utility function, which is only used internally by pcm_volume and pcm_mix.
* output: migrate from pthread to glib threadsThomas Jansen2008-12-281-3/+2
|
* notify: use GLib lockingMax Kellermann2008-12-271-0/+1
| | | | | Use GLib locking (GMutex, GCond) instead of pthread because GLib is more portable, e.g. on mingw32.
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* output: removed audio_output.resultMax Kellermann2008-10-291-11/+0
| | | | | Since open() and play() close the device on error, we can simply check audio_output.open instead of audio_output.result after a call.
* output: delay reopen after device failureMax Kellermann2008-10-291-0/+8
| | | | | | | When one of several output devices failed, MPD tried to reopen it quite often, wasting a lot of resources. This patch adds a delay: wait 10 seconds before retrying. This might be changed to exponential delays later, but for now, it makes the problem go away.
* output: moved audioDeviceStates to audio_output.enabledMax Kellermann2008-10-291-0/+5
|
* output: use bool for return values and flagsMax Kellermann2008-10-291-6/+6
| | | | | Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
* pcm_utils: renamed ConvState to struct pcm_convert_stateMax Kellermann2008-10-211-1/+1
| | | | No CamelCase, and a struct instead of a typedef.
* output: removed DEVICE_ON, DEVICE_OFFMax Kellermann2008-09-241-0/+6
| | | | | | | To check whether a device is really on or off, we should rather check audio_output.open, instead of managing another variable. Wrap audio_output.open in the inline function audio_output_is_open() and use it instead of DEVICE_ON and DEVICE_OFF.
* output: semi-asynchronous playbackMax Kellermann2008-09-241-0/+12
| | | | | | | Send an output buffer to all output plugins at the same time, instead of waiting for each of them separately. Make several functions non-blocking, and introduce the new function audio_output_wait_all() to synchronize with all audio output threads.
* output: document the audio_output elementsMax Kellermann2008-09-241-4/+58
|
* output: make "struct audio_output" opaque for output pluginsMax Kellermann2008-09-241-0/+58
We have eliminated direct accesses to the audio_output struct from the all output plugins. Make it opaque for them, and move its real declaration to output_internal.h, similar to decoder_internal.h. Pass the opaque structure to plugin.init() only, which will return the plugin's data pointer on success, and NULL on failure. This data pointer will be passed to all other methods instead of the audio_output struct.