Search found 4 matches

by Adrian
June 2nd, 2018, 6:25 pm
Forum: Developers' Corner
Topic: Determine currently used codec
Replies: 6
Views: 1398

Re: Determine currently used codec

Hi Max

The mediainfo program reports the audio format contained in .m4a and .ogg, and so should be fine for my use.

Adrian.
by Adrian
June 2nd, 2018, 3:32 pm
Forum: Developers' Corner
Topic: Determine currently used codec
Replies: 6
Views: 1398

Re: Determine currently used codec

Hi Max I just played a ".m4a" file in Volumio, and it displayed "M4A" on a file icon. I also played a ".ogg" file and it displayed an "Ogg" graphic. I have also just tried a program called mediainfo, that reports the audio format of files and streams. I can probably run that with the location return...
by Adrian
June 2nd, 2018, 10:34 am
Forum: Developers' Corner
Topic: Determine currently used codec
Replies: 6
Views: 1398

Re: Determine currently used codec

Hi Max Thanks for the reply. I was asked if I could include the audio type in my OLED display program, and looking around it appears to be a popular item of information (Volumio displays it in the Web UI, but not for radio, and I have seen it in images of LCD displays for MPD-based music players). M...
by Adrian
June 2nd, 2018, 7:39 am
Forum: Developers' Corner
Topic: Determine currently used codec
Replies: 6
Views: 1398

Determine currently used codec

Hi I am writing a C++ program and would like to determine the name of the codec/audio type (e.g. mp3, flac) of the currently playing/paused audio, which could be an audio file or a stream. I am using libmpdclient, but I could also query MPD directly. The goal is simply to display the current audio t...