#### Archived

This topic is now archived and is closed to further replies.

# Can u help me understand this?

## Recommended Posts

Hey, I was just looking at Andre Lamoth''s book and noticed he used a macro dealing with the change of volume. Here it is:
#define DSVOLUME_TO_DB(volume) ((DWORD(-30*(100 - volume))))
Can u help me understand this? Whats going on here. Thanks in advance, -Sathenzar

##### Share on other sites
looks like he''s converting "volume" into decibels.

• ### Forum Statistics

• Total Topics
628345
• Total Posts
2982187

• 9
• 24
• 9
• 9
• 13