mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 21:55:36 +00:00
use doxygen to generate documentation
This commit is contained in:
parent
418904abd3
commit
64b5564ae1
|
@ -186,10 +186,15 @@ else()
|
|||
set(SOUNDIO_OS_BIG_ENDIAN false)
|
||||
set(SOUNDIO_OS_LITTLE_ENDIAN true)
|
||||
endif()
|
||||
configure_file (
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/src/config.h.in"
|
||||
${CONFIGURE_OUT_FILE}
|
||||
)
|
||||
set(DOXYGEN_CONF_FILE "${CMAKE_BINARY_DIR}/doxygen.conf")
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/doc/doxygen.conf.in"
|
||||
${DOXYGEN_CONF_FILE}
|
||||
)
|
||||
|
||||
add_library(libsoundio_shared SHARED ${LIBSOUNDIO_SOURCES})
|
||||
set_target_properties(libsoundio_shared PROPERTIES
|
||||
|
@ -297,6 +302,11 @@ add_custom_target(coverage
|
|||
COMMAND rm coverage.info coverage.info.cleaned
|
||||
)
|
||||
|
||||
add_custom_target(doc
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMAND doxygen ${DOXYGEN_CONF_FILE}
|
||||
)
|
||||
|
||||
|
||||
|
||||
message("\n"
|
||||
|
|
21
README.md
21
README.md
|
@ -8,12 +8,7 @@ This library is an abstraction; however in the delicate balance between
|
|||
performance and power, and API convenience, the scale is tipped closer to
|
||||
the former. Features that only exist in some sound backends are exposed.
|
||||
|
||||
The goal of this library is to be the only resource needed to implement top
|
||||
quality audio playback and capture on desktop and laptop systems. This
|
||||
includes detailed documentation explaining how audio works on each supported
|
||||
backend, how they are abstracted to provide the libsoundio API, and what
|
||||
assumptions you can and cannot make in order to guarantee consistent, reliable
|
||||
behavior on every platform.
|
||||
[API Documentation](http://libsound.io/doc)
|
||||
|
||||
**This project is a work-in-progress.**
|
||||
|
||||
|
@ -184,7 +179,7 @@ If you don't like this order, you can use `soundio_connect_backend` to
|
|||
explicitly choose a backend to connect to. You can use `soundio_backend_count`
|
||||
and `soundio_get_backend` to get the list of available backends.
|
||||
|
||||
For complete API documentation, see `src/soundio.h`.
|
||||
[API Documentation](http://libsound.io/doc)
|
||||
|
||||
## Contributing
|
||||
|
||||
|
@ -266,6 +261,17 @@ For each backend, do the following:
|
|||
back correctly. If possible use the `--in-device` and `--out-device`
|
||||
parameters to test a USB microphone in raw mode.
|
||||
|
||||
### Building The Documentation
|
||||
|
||||
Ensure that [doxygen](http://www.stack.nl/~dimitri/doxygen/) is installed,
|
||||
then:
|
||||
|
||||
```
|
||||
make docs
|
||||
```
|
||||
|
||||
Then look at `html/index.html` in a browser.
|
||||
|
||||
## Roadmap
|
||||
|
||||
0. Make sure PulseAudio can handle refresh devices crashing before
|
||||
|
@ -289,7 +295,6 @@ For each backend, do the following:
|
|||
0. Create a test for input stream overflow handling.
|
||||
0. Allow calling functions from outside the callbacks as long as they first
|
||||
call lock and then unlock when done.
|
||||
0. use a documentation generator and host the docs somewhere
|
||||
0. add len arguments to APIs that have char *
|
||||
- replace strdup with `soundio_str_dupe`
|
||||
0. Support PulseAudio proplist properties for main context and streams
|
||||
|
|
2033
doc/doxygen.conf.in
Normal file
2033
doc/doxygen.conf.in
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue