-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retrieve the level (peak amplitude) #525
Comments
What's the use case for this? This would be a fairly expensive operation, requiring decoding the entire music clip and looking at each sample. |
Well in my specific case 'audio normalization' Other possible cases:
True to some extent a recent extra add-on for Bass The second post by Ian ...
might give some insight on how to keep cpu usage For now I am using a work around with:
windows` 7 / windows 10(1903) https://github.com/thrive4/app.fb.audioplayer-bass/blob/main/audioplayer.bas sdl_mixer version (drc not working) Hope this clarifies a little. |
Maybe there is an alternative trick with the sdl_mixer
that I am overlooking, if not, could it be worthwhile
implementing something similar to BASS_ChannelGetLevel?
https://www.un4seen.com/doc/#bass/BASS_ChannelGetLevel.html
'Retrieves the level (peak amplitude) of a sample, stream,
MOD music, or recording channel'
for clarity:
'This function measures the level of the channel's sample data
not its level in the final output mix, so the channel's volume
([BASS_ATTRIB_VOL](https://www.un4seen.com/doc/bass
/BASS_ATTRIB_VOL.html) attribute) and panning ([BASS_ATTRIB_PAN]
does not affect it'
Note un4seen bass has a quite sophisticated variant:
https://www.un4seen.com/doc/#bass/BASS_ChannelGetLevelEx.html
The text was updated successfully, but these errors were encountered: