You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
515 B
C++
26 lines
515 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
/** \file
|
|
*
|
|
* Parser functions for audio related objects.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
struct AudioFormat;
|
|
|
|
/**
|
|
* Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an
|
|
* #AudioFormat.
|
|
*
|
|
* Throws #std::runtime_error on error.
|
|
*
|
|
* @param src the input string
|
|
* @param mask if true, then "*" is allowed for any number of items
|
|
*/
|
|
AudioFormat
|
|
ParseAudioFormat(std::string_view src, bool mask);
|