Closed CalvinWilkinson closed 4 months ago
[!Note] Introduction of https://github.com/KinsonDigital/Velaptor/labels/%E2%9C%A8new%20feature 's
- Adding a new
enum
namedAudioBuffer
and a new property with the nameBufferType
to theIAudio
interface andAudio
class. This is used to know what type of buffering is being used for the audio. This is a new feature that comes from CASL v1.0.0-preview.18.- Added a new
Load(string atlasPathOrName)
method to theILoader<IAtlasDta>
interface for loading texture atlas data.- Added a new
Load(string audioPathOrName, AudioBuffer bufferType)
method to theILoader<IAudio>
interface for loading audio.- Added a new
Load(string texturePathOrName)
method to theILoader<ITexture>
interface for loading textures.
[!Warning] Introduced https://github.com/KinsonDigital/Velaptor/labels/%F0%9F%A7%A8breaking%20changes
- Renamed the
ISound
interface toIAudio
.- Renamed the
Sound
class toAudio
.- Changed the data type of the
Position
andLength
properties toTimeSpan
.- Replaced the
State
property from theISound
interface andSound
class with the following bool properties to represent the state of the audio.
IsPlaying
IsPaused
IsStopped
- The
State
property was removed due to the unintentional exposure of the CASL API.- Removed the
Reset()
method from theISound
interface andSound
class. This method was performing the same operation as theStop()
method.- Removed the
public
constructor from theSound
class.
- This was done to force users to use the content loader system.
- Refactored the name of the
LoadSoundException
toLoadAudioException
- Refactored the name of the
SoundLoader
class toAudioLoader
- Refactored the name of the
PathResolverFactory.CreateSoundPathResolver()
method toPathResolverFactory.CreateAudioPathResolver()
- Refactored the name of the
ContentLoaderFactory.CreateSoundLoader()
method toContentLoaderFactory.CreateAudioLoader()
- The default name of the content folder
Sound
which is where audio content is located has been changed toAudio
- Refactored the
ILoader<IAudio>.Unload()
method parameter namedsound
toaudio
.
Description:
To allow this pull request to be merged, please make sure that the following items of this pull request are complete.
This pull request closes #934
✅The pull request head branch must be a feature branch with the syntax 'feature/-sync-testing'.
✅The pull request base branch must be a 'main' or 'preview' branch..
✅The pull request head branch contains a valid issue number.
✅The pull request title matches the linked issue title exactly.
✅The pull request assignees match the assignees of the issue.
✅The pull request labels match the labels of the issue.
✅The pull request organizational projects match the organizational projects of the issue.
✅The pull requests milestone matches the milestone of the issue.
Additional Info:
[run-sync]
command.