FBEAR: Partial fix for the piano
|Reported by:||eriktorbjorn||Owned by:||Kirben|
|Cc:||Game:||Fatty Bear's Birthday Surprise|
This is an incomplete attempt at getting the piano in Fatty Bear's Birthday surprise to work a bit better.
Currently it always plays the same note, no matter which key you hit. There are two different mechanisms for specifying the note: The standard piano sound uses o6_startSound()'s "offset" parameter, while the digitized instruments uses o6_setVolume()'s second case to specify which frequency the next sound effect should be played at.
Or at least that's my guesses.
There are several things that need to be done, though. The patch doesn't do anything about the standard piano sound, and when using digitized sounds you can't play a new note until the old note has ended.
I don't want to apply this patch myself since some of my changes don't agree with the comments in the code. Still, it's a start.
Ticket imported from: #977249. Ticket imported from: patches/451.