CUGL Bug Patches
CUGL is continually a work in progress. Every time we work on a lecture we either find some issue, or some way in which the engine can be improved. While we try to feature lock the engine at the start of the semester, that is not always possible.
This page is where we will post the mid-semester patches. For each file you should
simply copy it to the correct directory. Source code files replace the appropriate file
in cugl/source
. Header files replace the appropriate file in cugl/include/cugl
.
Patch 2.3.1 (January 29, 2023)
- cugl/source/scene2/ui/CUTextField.cpp: Fixed cursor positioning and movement.
- cugl/source/util/CUStrings.cpp: Fixed number to string conversion on Android.
- cugl/include/cugl/util/CUStrings.h: Add functions for hex strings.
Patch 2.3.2 (February 16, 2023)
- cugl/include/cugl/render/cu_render.h: Fixed omission of
VertexBuffer
class
Patch 2.3.3 (March 5, 2023)
While working on the Audio lecture, we discovered numerous minor bugs in the various audio classes. These would not effect you if you were only doing very simple audio, but they matter if you are trying to do any kind of effects.
- cugl/source/audio/CUAudioEngine.cpp: Fixed several issues with sound pausing.
- cugl/source/audio/CUAudioQueue.cpp: Fixed a race condition with the listeners.
- cugl/source/audio/graph/CUAudioMixer.cpp: Fixed a problem with the mixer width.
- cugl/include/cugl/audio/graph/CUAudioPanner.h: Added a new convenience allocator.
- cugl/source/audio/graph/CUAudioPanner.cpp: Added a new convenience initializer.
- cugl/sdl2/extensions/codec/CODEC_flac.c: Fixed an issue with the final audio page.
- cugl/sdl2/extensions/codec/CODEC_mpeg.c: Fixed an issue with the final audio page.
- cugl/sdl2/extensions/codec/CODEC_vorbis.c: Fixed an issue with the final audio page.
- cugl/sdl2/extensions/codec/CODEC_wav.c: Fixed an issue with the final audio page.
Patch 2.3.4 (May 17, 2023)
This is an 11th hour fix to the audio system. We discovered a few issues with 3rd party (non-Apple) headphones on iPhones that need to be addressed.
- cugl/source/audio/graph/CUAudioOutput.cpp: Fixed an issue with output switching.
- cugl/source/audio/graph/CUAudioResampler.cpp: Improved 44.1k downsampling.
- cugl/include/cugl/audio/graph/CUAudioResampler.h: Improved 44.1k downsampling.
- cugl/source/audio/graph/CUAudioPlayer.cpp: Fixed issue with open file handles.