Skip to content
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

speakers.playAudio sometimes plays only on the next call #1874

Open
EntityinArray opened this issue Jun 24, 2024 · 1 comment
Open

speakers.playAudio sometimes plays only on the next call #1874

EntityinArray opened this issue Jun 24, 2024 · 1 comment
Labels
area-Minecraft This affects CC's Minecraft-specific content. bug A problem or unexpected behaviour with the mod. help wanted I haven't got the knowledge or time to work on this.

Comments

@EntityinArray
Copy link

Minecraft Version

1.21.x

Version

1.111.1

Details

Hello, thank you for your work on this amazing mod.

I discovered a weird issue with speakers. Executing speakers.playAudio() with certain timing has a chance to not play sound at all. The audio chunk gets postponed until next function call, at which speakers play 2 chunks one after another.

(speaker is driven properly, waiting for speaker_audio_empty e.t.c., just like in the wiki)
https://pastebin.com/2UDbQaZD

Video that demonstrates the issue:

speaker_stuff.mp4
@EntityinArray EntityinArray added the bug A problem or unexpected behaviour with the mod. label Jun 24, 2024
@EntityinArray
Copy link
Author

EntityinArray commented Jun 24, 2024

I also tried changing chunk length from 16000 to 48000, still can reproduce

48000.mp4

My theory is that there seems to be a time window, when speaker finishes playing its chunk, during which sending more audio in causes it to not play anything. It plays 2 chunks (old and new one) after you call play again

@SquidDev SquidDev added help wanted I haven't got the knowledge or time to work on this. area-Minecraft This affects CC's Minecraft-specific content. labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Minecraft This affects CC's Minecraft-specific content. bug A problem or unexpected behaviour with the mod. help wanted I haven't got the knowledge or time to work on this.
Projects
None yet
Development

No branches or pull requests

2 participants