-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Audio pitch change implementation #1510
Conversation
This seems to crash an hl build, or at least my results with hl were that. |
The two options go sweet in terms of pitch changing. |
Just placeholders, for now.
Hope you don't mind, but I copied @Cheemsandfriends's work over from #1512. (With a few changes.) Looks like it fixed the CI error. |
I'm kinda flattered that you used some of my work even tho it was some bad code lol |
nice work, CI seems to be fixed, was there anything else that may need to be implemented for this? Was HL crashing? |
Yeah, comments would be nice. You can refer to Application.hx for formatting examples. (Yeah the parameter descriptions don't all line up, but I guess that's just how we do things here.) Other than that, I guess it's a matter of testing. Cheemsandfriends, does HL still crash for you? |
It isn't really supported but, you wouldn't trace UNSUPPORTED right? And I don't know pretty much anything about Flash, tried to reproduce sounds but I couldn't hear them so I just gave up |
I should check up the testing right now and tell if it correctly works or not wait a sec |
Ok, I tested what @player-03 made and have some opinions about it.
|
I would want to make a commit here but idk if it's really possible lol (Nvm, Just made a review comment on the pitch lol) |
Oh, oops, I never got around to answering these questions. I think the correct way to add changes to this pull request is first to check out the branch. It'd look something like this:
That'll get you set up to make changes locally. You can push these changes to your own repo, at which point I think you can use this url to start a pull request.
It should be possible to make this work, but it might be that the formula is off. I'm afraid I haven't yet tested it myself, as awful as that sounds. Just kind of reused your formula and hoped everything would work out.
But... those are still there. Or are you saying they no longer work? |
It might be, I don't pretty know about coding since I just really started just a few months but the formula I made was like a play-and-test thing with my programming acknowledges. So if it is very off, i'm sorry lol
You removed the value option to getLength() That's why I said that it no longer works as intended lol |
I still don't see those. Link? |
In the commits you made |
Odd. I have "show comments" checked, and I still can't see them. |
Ah, I see your points. Interesting that your reviews are labeled "pending." That's probably why they aren't publicly visible. I didn't see a button to approve them, so perhaps only ninjamuffin99 can (being the owner of the fork). |
I have a button to like approve the things, maybe I should approve it lol |
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.
Good but needs some more robust code to not lose the track of the thing
Oh heck, it was many review post XD |
These setters now: (1) start by checking if anything changed, (2) use the new value in calculations, and (3) perform the assignment only at the end.
Seems good to me and to the CI |
Using `getGain()` and `setGain()` as a template. Like gain, you won't be able to set pitch before calling `init()`.
About the last commit, I have to check if it's correct or not cos maybe it was simply the bad positioning of the pitch thing |
CI seems to be failing on the download step. @joshtynjala, how did you fix this one? |
@player-03 I clicked the "Re-run all jobs" button in the summary page for the actions run. It's probably just a temporary network issue today. |
make a random commit, like add a space and remove it or some shit like that. |
No commit required; there's a re-run button. I was just giving it time in hopes the network would fix itself. |
Oh, nvm. |
What is the status of this? |
tbh, Idk. |
I don't like to be the one to merge my own changes - what if I missed something? So I leave it in hopes someone else will check it, though it seems this is what happens instead. Well, since it's been approved for four months and no one spotted any issues, let's go for it. |
Yooo ninjamuffin99 the creator of fnf 😱 |
Finally got hands dirty and figured out some of the backend stuff to get pitch changing stuff available.
I've tested Windows and HTML5, I'm just assuming most of the NativeBackend stuff works in a generally similar way.
NOT implemented Flash, I'm assuming it'd give you errors as getPitch() and setPitch() and the FlashAudioBackend aren't implemented.
I believe this closes #871