Debian Codegraph @

src/asound-stream-parser.c

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2024-2025 Geoffrey D. Bennett <[email protected]>
2 // SPDX-License-Identifier: GPL-3.0-or-later
3
4 #include "asound-stream-parser.h"
5
6 int get_sample_rate_category(int sample_rate) {
7 if (sample_rate <= 50000)
8 return SR_LOW;
9 if (sample_rate <= 100000)
10 return SR_MID;
11 return SR_HIGH;
12 }