Commit 4194f4b1 authored by Max Kellermann's avatar Max Kellermann

audio_parser: added API documentation

parent f48c58d1
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
/* /** \file
* Parser functions for audio related objects.
* *
* Parser functions for audio related objects.
*/ */
#ifndef AUDIO_PARSER_H #ifndef AUDIO_PARSER_H
...@@ -30,6 +30,16 @@ ...@@ -30,6 +30,16 @@
struct audio_format; struct audio_format;
/**
* Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an
* #audio_format.
*
* @param dest the destination #audio_format struct
* @param src the input string
* @param error location to store the error occuring, or NULL to
* ignore errors
* @return true on success
*/
bool bool
audio_format_parse(struct audio_format *dest, const char *src, GError **error); audio_format_parse(struct audio_format *dest, const char *src, GError **error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment