A sound is, as its name suggests, something that can be played and make a noise
Sounds are templated and can either be chunks or musics
A chunk sound is a short sound that is usually a sound effect or something quick; many chunks can play at once
A chunk will only play once
A music is something that usually plays for longer and is usually something like background music; only one sound can play at once
A music will loop infinitely until destroyed
This sound is a primitive port from SDL and doesn't allow for much control
There is no constructor for a sound from an already existing Mix_Chunk or Mix_Music because it may have unintended behaviour
Makes the sound given the string of the path of the sound
If this is a music sound, the music will loop; otherwise if this is a chunk, the chunk will play once
A sound is, as its name suggests, something that can be played and make a noise Sounds are templated and can either be chunks or musics A chunk sound is a short sound that is usually a sound effect or something quick; many chunks can play at once A chunk will only play once A music is something that usually plays for longer and is usually something like background music; only one sound can play at once A music will loop infinitely until destroyed This sound is a primitive port from SDL and doesn't allow for much control There is no constructor for a sound from an already existing Mix_Chunk or Mix_Music because it may have unintended behaviour