aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output: one thread per audio outputMax Kellermann2008-09-241-0/+4
| | | | | | 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: don't initialize inAudioFormat, outAudioFormatMax Kellermann2008-09-111-4/+0
| | | | | | As long as the device isn't open, both attributes are not used. Since they will both be initialized in audio_output_open(), we do not need the initialization in audio_output_init().
* 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-5/+2
| | | | | Instead of checking convertAudioFormat, we can simply check if reqAudioFormat is defined. This saves 4 bytes in the struct.
* audio: replaced copyAudioFormat() with simple assignmentMax Kellermann2008-09-091-1/+1
| | | | | | | | | The "!src" check in copyAudioFormat() used to hide bugs - one should never pass NULL to it. There is one caller which might pass NULL, add a check in this caller. Instead of doing mempcy(), we can simply assign the structures, which looks more natural.
* output: renamed the functions in output_control.cMax Kellermann2008-09-091-1/+1
| | | | Getting rid of CamcelCase, again.
* output: moved code from audioOutput.c to output_control.cMax Kellermann2008-09-091-0/+113
Similar to decoder_control.c, output_control.c will provide functions for controlling the output thread (which will be implemented later).