fix audio playing for too long
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-04-22 22:31:20 -04:00
parent 45bb4a44e0
commit 0d26c404ee
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file #maven.buildNumber.plugin properties file
#Sun Apr 21 21:07:34 EDT 2024 #Sun Apr 21 23:25:24 EDT 2024
buildNumber=101 buildNumber=102

View File

@ -241,14 +241,22 @@ Another pass at grass
Make cursor less jittery (ie always up to date with where the camera is facing) Make cursor less jittery (ie always up to date with where the camera is facing)
Physics Tweaks
Fix controls not repeating
# TODO # TODO
Character movement in particular feels off Character movement in particular feels off
- Bring back strafing - Bring back strafing
- Fix interaction with networking
Fix grass not generating for closest tiles Fix grass not generating for closest tiles
Fix being able to walk off far side of the world (ie in level editor)
Data Cleanup Data Cleanup
- Clean up creatures - Clean up creatures
- Remove unused ones - Remove unused ones
@ -273,6 +281,8 @@ Revisit first attempt at instancing (its really laggy lol)
Shader library system Shader library system
- Abiltiy to include the shader library in individual files (ie implement #include) - Abiltiy to include the shader library in individual files (ie implement #include)
Break control handlers into separate files with new logic to transition between control handler states
Transvoxel Algorithm Transvoxel Algorithm
Client Terrain Entity Management (specifically creation/teardown for client) Client Terrain Entity Management (specifically creation/teardown for client)
@ -384,6 +394,8 @@ Upgrade terrain generation algorithms
- Make a route hard coded that throws you straight into a generated world - Make a route hard coded that throws you straight into a generated world
- This makes it easier to tweak algo and immediately get results - This makes it easier to tweak algo and immediately get results
Documentation

View File

@ -80,7 +80,7 @@ public class AudioBuffer {
STBVorbis.stb_vorbis_get_info(decoder, info); STBVorbis.stb_vorbis_get_info(decoder, info);
int channels = info.channels(); int channels = info.channels();
int lengthSamples = STBVorbis.stb_vorbis_stream_length_in_samples(decoder); int lengthSamples = STBVorbis.stb_vorbis_stream_length_in_samples(decoder);
this.length = STBVorbis.stb_vorbis_stream_length_in_seconds(decoder) * 10; this.length = STBVorbis.stb_vorbis_stream_length_in_seconds(decoder) * 1;
//reads the main audio data //reads the main audio data
pcm = MemoryUtil.memAllocShort(lengthSamples); pcm = MemoryUtil.memAllocShort(lengthSamples);