-
Notifications
You must be signed in to change notification settings - Fork 117
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
WIP: Extensions - Add CVSD codec effect for AN/PRC-343 #1135
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution! I will have a more detailed look of the changes in the next days :) |
f2adeb7 makes some modifications to the sound based on feedback I've gotten. Also turns out that the filter library's Chebyshev type II filter is buggy, so I've switched the anti-aliasing filter to a type I. The effect should be much easier to understand now - a lot more high frequency content comes through on voiced sounds. There's a lot of constants you can fiddle with so if anyone builds this I'd recommend you have a go dialling them in. Here's an updated demo: https://youtu.be/wXOJyhpP--A |
const short delta_max = delta_min * 16; | ||
const short delta_coef = 2; | ||
const float decay = 0.95; | ||
const short delta_min = 256; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My first comment on this. Can you use fixed size integers (for example std::int16_t)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done this using shorts as this is what the TS API uses for audio samples (which is a little odd). It's what all the existing effects use also.
I would say that while the middle signal quality range sounds ok. The lower end sounds too good and the message can be heard across even at 5% signal quality. |
I should have been a bit more clear with this in the demo, but all those samples are at 0dB. In-game by the time the signal quality gets to around 15%, the volume is lower than the sensitivity of the AN/PRC-343, so the transmission is quiet and intermittent on top of the distortion. The existing effect is still understandable all the way down at 1% signal quality if the volume is sufficiently high, so I've just tried to match that behaviour. |
04b508d fixes a crash which would occur if It seems there's been some discussion on whether |
Yeah, that's good. :) |
Just lending another ear -- I think the signal quality is too degraded for 100% and 80%. Excessive noise. I agree that the middle is alright. I am no radio expert, however, and this is just based on brief references from YouTube. Edit: (i.e. one you may have already seen ) |
When merged this pull request will:
Given I've done the work to enable it, I may make more changes to the effects so the other radios are more distinct. I think the analogue radios could do with some tweaking to make their effects a bit more realistic. The AN/PRC-154 uses the SRW which I believe uses MELPe, however this algorithm is much more complex than CVSD so I'm not sure I'll have the time.
Feedback is welcome, I'm aware the new effect is much worse quality than the current one, but I think it's much more realistic.
* The effect has changed since this demo was posted. See the comments for more up-to-date demos.