/
/
/
1"""Helper functions for the VBAN receiver provider."""
2
3from __future__ import annotations
4
5import re
6
7from music_assistant_models.enums import ContentType
8
9
10def get_supported_pcm_formats() -> dict[str, int]:
11 """Return supported PCM formats."""
12 pcm_formats = {}
13 for content_type in ContentType.__members__:
14 if match := re.match(r"PCM_([SF](\d{2})LE)", content_type):
15 pcm_formats[match.group(1)] = int(match.group(2))
16 return pcm_formats
17