Normal
[USER=10391]@hwahrmann[/USER]Plz help I read the documentation and can not understand anything.RMS Function in MP: MediaPortal-1/BassAudioEngine.cs at master · MediaPortal/MediaPortal-1 · GitHubUsed:1. First: BASS_Mixer_ChannelGetLevel or BASS_WASAPI_GetLevel, both return values for Left, Right channel (Left - LowWord, Rigth - HiWord) and value by channel from 0 to 32768. MediaPortal-1/BassAudioEngine.cs at master · MediaPortal/MediaPortal-1 · GitHub2. Then LevelToDB(peakL, 65535) - from un4seen forum dB to BASS volume? this function work as: 20 * log10( level / maxLevel ) and for 32768 return -6.020461 and for 1 return -96.478175, for 0 return -infinity3. Then in MediaPortal-1/GUIMusicPlayingNow.cs at master · MediaPortal/MediaPortal-1 · GitHub both channel value Increase by an absolute value multiplied by 0.5 and start to coincide with values from < -15 (VU1.png) to >= 3 (VU15.png). MediaPortal-1/GUIMusicPlayingNow.cs at master · MediaPortal/MediaPortal-1 · GitHubIe:~Min: 1 -> -96.478175 -> -96.478175+(96.478175*0.5) -> -48.239087Max: 32768 -> -6.020461 -> -6.020461+(6.020461*0.5) -> -3.010231andMin -48.239087 < -15 Then return VU1.pngMax -3.010231 < -2 Then return VU9.png but how about VU10..VU15? I did not calculate correctly? Or I did not understand the documentation correctly? Or do we still have a problem with displaying the level through the channels? Or we do not have a problem and then please tell me where I was wrong? Thankful in advance for the answer.
[USER=10391]@hwahrmann[/USER]
Plz help I read the documentation and can not understand anything.
RMS Function in MP: MediaPortal-1/BassAudioEngine.cs at master · MediaPortal/MediaPortal-1 · GitHub
Used:
1. First: BASS_Mixer_ChannelGetLevel or BASS_WASAPI_GetLevel, both return values for Left, Right channel (Left - LowWord, Rigth - HiWord) and value by channel from 0 to 32768. MediaPortal-1/BassAudioEngine.cs at master · MediaPortal/MediaPortal-1 · GitHub
2. Then LevelToDB(peakL, 65535) - from un4seen forum dB to BASS volume? this function work as: 20 * log10( level / maxLevel ) and for 32768 return -6.020461 and for 1 return -96.478175, for 0 return -infinity
3. Then in MediaPortal-1/GUIMusicPlayingNow.cs at master · MediaPortal/MediaPortal-1 · GitHub both channel value Increase by an absolute value multiplied by 0.5 and start to coincide with values from < -15 (VU1.png) to >= 3 (VU15.png). MediaPortal-1/GUIMusicPlayingNow.cs at master · MediaPortal/MediaPortal-1 · GitHub
Ie:
~Min: 1 -> -96.478175 -> -96.478175+(96.478175*0.5) -> -48.239087
Max: 32768 -> -6.020461 -> -6.020461+(6.020461*0.5) -> -3.010231
and
Min -48.239087 < -15 Then return VU1.png
Max -3.010231 < -2 Then return VU9.png but how about VU10..VU15?
I did not calculate correctly? Or I did not understand the documentation correctly? Or do we still have a problem with displaying the level through the channels? Or we do not have a problem and then please tell me where I was wrong?
Thankful in advance for the answer.