LingFeng-bbben / MajdataView

Next-generation Simai: Note disgner for maimai. The unity viewer part of the Majdata.
GNU General Public License v3.0
310 stars 37 forks source link

Track delay during playback #117

Closed yuraelva closed 1 year ago

yuraelva commented 1 year ago

Where

It is not clear where in majdata the problem is occurring. I believe it is the editor.

Description

The problem is that when you press the play button within the editor, the music is played back with a delay (not in sync with the score). This phenomenon is very peculiar.

Case1: When playing the music from the beginning, no discrepancy occurs (or is not perceivable). Case2: If you start playing right before a sound in the audio source, it will play from the beginning of the source. Case3: Playing from somewhere in the middle of the audio source results in a subtle discrepancy.

Additionally, the discrepancy in case 3 differs between playing the music from the beginning, stopping it in the middle, and then playing it again, and playing it directly from the middle. The degree of audio discrepancy varies. This issue occurred when attempting to play from right before to check if the created score matches the produced part of the music. Subsequently, it was confirmed to happen in various places. This phenomenon is highly reproducible, occurring 100% of the time in the current state. However, this reproducibility is not present in other tracks.

Attached files contain recordings of the anomalies in case 1, case 2, and case 3. bug.zip

yuraelva commented 1 year ago

Reviewed past postings and solved by changing the bit rate of mp3's.