### Description
The replay gain preferences are applied in the legacy code, but the
playout code was missing this feature. The replay gain was not applied
when playout fetched the schedules.
37d1a7685e/legacy/application/models/Schedule.php (L881-L886)
30 lines
584 B
Python
30 lines
584 B
Python
from enum import Enum
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Info(BaseModel):
|
|
station_name: str
|
|
|
|
|
|
class MessageFormatKind(int, Enum):
|
|
ARTIST_TITLE = 0
|
|
SHOW_ARTIST_TITLE = 1
|
|
RADIO_SHOW = 2
|
|
|
|
|
|
class StreamPreferences(BaseModel):
|
|
input_fade_transition: float
|
|
message_format: MessageFormatKind
|
|
message_offline: str
|
|
replay_gain_enabled: bool
|
|
replay_gain_offset: float
|
|
|
|
|
|
class StreamState(BaseModel):
|
|
input_main_connected: bool
|
|
input_main_streaming: bool
|
|
input_show_connected: bool
|
|
input_show_streaming: bool
|
|
schedule_streaming: bool
|