lib/alsa/AllowedFormat: add API documentation
This commit is contained in:
parent
37c27fa606
commit
cd3ed720e0
@ -29,14 +29,28 @@ struct StringView;
|
|||||||
|
|
||||||
namespace Alsa {
|
namespace Alsa {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An audio format for the "allowed_formats" setting of
|
||||||
|
* #AlsaOutputPlugin.
|
||||||
|
*/
|
||||||
struct AllowedFormat {
|
struct AllowedFormat {
|
||||||
AudioFormat format;
|
AudioFormat format;
|
||||||
#ifdef ENABLE_DSD
|
#ifdef ENABLE_DSD
|
||||||
bool dop;
|
bool dop;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse a format string.
|
||||||
|
*
|
||||||
|
* Throws std::runtime_error on error.
|
||||||
|
*/
|
||||||
explicit AllowedFormat(StringView s);
|
explicit AllowedFormat(StringView s);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse a list of formats separated by space.
|
||||||
|
*
|
||||||
|
* Throws std::runtime_error on error.
|
||||||
|
*/
|
||||||
static std::forward_list<AllowedFormat> ParseList(StringView s);
|
static std::forward_list<AllowedFormat> ParseList(StringView s);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user