Skip to main content
Topic: Small req : attenuation field (Read 1638 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Small req : attenuation field

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.

Small req : attenuation field

Reply #1
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.

 
SimplePortal 1.0.0 RC1 © 2008-2019