An Audio Engine written in ActionScript.
AudioPlayer
is the core part of this engine which provides support for media operations on a single audio file.
The AudioPlayer
class exposes the following methods:
playSoundWithFilePath()
- Pass a valid file path and once loaded asynchronously, the audio gets playedstopPlayer()
- Stops the audio and resets the play position to 0pausePlayer()
- Pauses the audio and saves the current play positionsetCurrentVolume()
- Set the volumegetCurrentVolume()
- Returnes the current volume
The Triton Player (https://github.com/midhunhk/triton-player) uses lib-sndbar under its hood.
The source code for lib-sndbar is licensed under MIT license.