output/oss: add "const" attributes
This commit is contained in:
parent
a62df3cb8f
commit
dc03ad05be
|
@ -421,6 +421,7 @@ oss_setup_sample_rate(int fd, AudioFormat &audio_format,
|
||||||
* Convert a MPD sample format to its OSS counterpart. Returns
|
* Convert a MPD sample format to its OSS counterpart. Returns
|
||||||
* AFMT_QUERY if there is no direct counterpart.
|
* AFMT_QUERY if there is no direct counterpart.
|
||||||
*/
|
*/
|
||||||
|
gcc_const
|
||||||
static int
|
static int
|
||||||
sample_format_to_oss(SampleFormat format)
|
sample_format_to_oss(SampleFormat format)
|
||||||
{
|
{
|
||||||
|
@ -459,6 +460,7 @@ sample_format_to_oss(SampleFormat format)
|
||||||
* Convert an OSS sample format to its MPD counterpart. Returns
|
* Convert an OSS sample format to its MPD counterpart. Returns
|
||||||
* SampleFormat::UNDEFINED if there is no direct counterpart.
|
* SampleFormat::UNDEFINED if there is no direct counterpart.
|
||||||
*/
|
*/
|
||||||
|
gcc_const
|
||||||
static SampleFormat
|
static SampleFormat
|
||||||
sample_format_from_oss(int format)
|
sample_format_from_oss(int format)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue