source: roaraudio/doc/man3/roar_str2codec.3 @ 5038:9b8c150a0b13

Last change on this file since 5038:9b8c150a0b13 was 5032:b2c8bbc7907f, checked in by phi, 13 years ago

some manpage correction

File size: 1.1 KB
RevLine 
[784]1.\" roar_simple_play.3:
2
[5032]3.TH "roar_str2codec" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"
[784]4
5.SH NAME
6roar_str2codec \- Get codec ID by codec name
7
8roar_codec2str \- Get codec name by ID
9
10.SH SYNOPSIS
11
12 #include <roaraudio.h>
13
14 int    roar_str2codec (char * codec);
15 char * roar_codec2str (int    codec);
16
17.SH "DESCRIPTION"
18\fBroar_str2codec\fR converts a string to a RoarAudio Codec ID. It also supports some common aliases.
19\fBroar_codec2str\fR is the reverse operation of \fBroar_str2codec\fR: It get's a name by the ID given.
20If a \fBcodec\fR is valid the following should be true:
21 roar_str2codec(roar_codec2str(codec)) == codec
22
23Note that because of aliasing and case insensitivity the revers operation needs not to be true.
24
[785]25.SH "THREAD SAFETY"
26Because \fBroar_codec2str\fR returns a static unique pointer for each codec it is fully thread safe.
27
[784]28.SH "RETURN VALUE"
[4013]29On success \fBroar_str2codec\fR returns a codec ID.  On error, \-1 is returned.
[784]30\fBroar_codec2str\fR returns the name of the codec or NULL on error.
[785]31You must not free this pointer or write to it.
[784]32
33.SH "EXAMPLES"
34FIXME
35
36.SH "SEE ALSO"
37\fBlibroar\fR(7),
38\fBRoarAudio\fR(7).
39
40.\" ll
Note: See TracBrowser for help on using the repository browser.