Opened 8 years ago

Closed 8 years ago

#9998 closed Bug Report - General (fixed)

playback data OSD display: audio sample rate shown as Kbps instead of KHz

Reported by: dekarl@… Owned by: markk
Priority: minor Milestone: 0.25
Component: MythTV - Video/OSD Rendering Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no

Description

The playback data OSD displays audio sample rate as 48Kbps instead of 48KHz. The unit and value don't match. Either it's 224Kbps or 48KHz in this example.

Attachments (1)

0003-Convert-raw-sampling-rate-into-visually-appeasing-di.patch (2.4 KB) - added by dekarl@… 8 years ago.
Example of a possible fix.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 years ago by dekarl@…

source of the wrong unit is the conversion of the raw sample rate into a human readable string with "BitrateToString?" at https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythtv/mythplayer.cpp#L4357

QString samplerate = RingBuffer::BitrateToString(audio.GetSampleRate());

Changed 8 years ago by dekarl@…

Example of a possible fix.

comment:2 Changed 8 years ago by Github

Milestone: unknown0.25
Resolution: fixed
Status: newclosed

MythPlayer?: Fix OSD debug output for audio samplerate.

Closes #9998

Branch: master Changeset: 243e6856678b0279cb6bfd68f0f26087de310f7a

Note: See TracTickets for help on using tickets.