aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_api.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output: added audio_output_get_name()Max Kellermann2008-09-241-0/+2
| | | | | | Reduce direct accesses to the audio_output struct from the plugins: this time, eliminate all accesses to audio_output.name. The name is required by some plugins for log messages.
* output: pass audio_format to plugin.init() and plugin.open()Max Kellermann2008-09-241-2/+5
| | | | | | | Pass the globally configured audio_format as a const pointer to plugin.init(). plugin.open() gets a writable pointer which contains the audio_format requested by the plugin. Its initial value is either the configured audio_format or the input file's audio_format.
* output: one thread per audio outputMax Kellermann2008-09-241-0/+26
| | | | | | To keep I/O nastiness and latencies away from the core, move the audio output code to a separate thread, one per output. The thread is created on demand, and currently runs until mpd exits.
* output: removed audio_output.sameInAndOutFormatsMax Kellermann2008-09-111-1/+0
| | | | | Eliminate sameInAndOutFormats and check with audio_format_equals() each time it this information is needed. Another 4 bytes saved.
* output: removed audio_output.convertAudioFormatMax Kellermann2008-09-111-1/+0
| | | | | Instead of checking convertAudioFormat, we can simply check if reqAudioFormat is defined. This saves 4 bytes in the struct.
* output: renamed method namesMax Kellermann2008-09-091-22/+12
| | | | No CamelCase. Also don't declare typedefs for the methods.
* output: const plugin structuresMax Kellermann2008-09-081-1/+1
| | | | | Since the plugin struct is never modified, we should store it in constant locations.
* output: replace audio_output.*Func with audio_output.pluginMax Kellermann2008-09-071-7/+1
| | | | | Instead of copying all that stuff from the audio output plugin to the audio output structure, store a pointer to the plugin.
* output: renamed typedef AudioOutput to struct audio_outputMax Kellermann2008-09-071-12/+12
| | | | | Also rename AudioOutputPlugin to struct audio_output_plugin, and use forward declarations to reduce include dependencies.
* output: added output_api.hMax Kellermann2008-09-071-0/+91
Just like decoder_api.h, output_api.h provides the audio output API which is used by the plugins.