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