This improves the functionality of the Sound and SoundBuffer objects, squashing a few runtime errors I found in the process of using these types. Specifically:
SoundBuffer can now be initialized from array data
If a Sound is playing, you can get the current position within the buffer using get_playing_offset
The errors I fixed were typos in the implementation of get_duration (in SoundBuffer) and get_buffer (in Sound).
This improves the functionality of the Sound and SoundBuffer objects, squashing a few runtime errors I found in the process of using these types. Specifically:
The errors I fixed were typos in the implementation of get_duration (in SoundBuffer) and get_buffer (in Sound).