HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: Gul on 2003-06-25 16:23:50

Title: Small req : attenuation field
Post by: Gul on 2003-06-25 16:23:50
Would it be hard to implement a %__attenuation% field?
I need this for some simple OSD. I would like to show the volume (attenuation that is) on-screen, and the only way i know how to do this, is to have foobar write a value to disk, and then read/display this value.
Title: Small req : attenuation field
Post by: Aero on 2003-06-25 19:37:09
Quote
Would it be hard to implement a %__attenuation% field?
I need this for some simple OSD. I would like to show the volume (attenuation that is) on-screen, and the only way i know how to do this, is to have foobar write a value to disk, and then read/display this value.

Um...
Code: [Select]
int volume = play_control::command(play_control::VOLUME_GET, 0);
?

Unless you really need to do it via a format string - in that case, you can always parse the format spec yourself and handle it.  DanZ is doing something similar for WSGUI, since several useful properties are not accessible outside of the CORE application.