aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_api.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output_api: removed audio_output_get_name()Max Kellermann2009-02-251-25/+0
| | | | Use config_get_block_string("name") instead of audio_output_get_name().
* output_api: moved the command check out of method pause()Max Kellermann2009-01-301-7/+0
| | | | | | Move the "while" loop which checks for commands to the caller ao_pause(). This simplifies the pause() method, and lets us remove audio_output_is_pending().
* output_api: removed audio_output_closed()Max Kellermann2009-01-301-7/+0
| | | | | The function is only used by the MVP output plugin, and this one call is wrong.
* output: use bool for return values and flagsMax Kellermann2008-10-291-1/+1
| | | | | Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
* don't include os_compat.hMax Kellermann2008-10-081-0/+2
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* audio_output: added function audio_output_is_pending()Max Kellermann2008-09-291-0/+4
| | | | | | The function audio_output_is_pending() returns whether there is a pending command. This is useful for output plugins as a break condition for longer loops.
* output: make "struct audio_output" opaque for output pluginsMax Kellermann2008-09-241-0/+1
| | | | | | | | | | | 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.
* output: added audio_output_closed()Max Kellermann2008-09-241-0/+8
| | | | | | The JACK output plugin needs to reset its "opened" flag when the JACK server fails. To prevent it from accessing the audio_output struct directly introduce the API function audio_output_closed().
* output: added audio_output_get_name()Max Kellermann2008-09-241-0/+24
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.