Class Index | File Index

Classes


Class bHive.Sound


Version all.

Defined in: bHive-1.0.7.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
bHive.Sound(construct, parentObject)
Creates a new bHive.Audio instance
Method Summary
Method Attributes Method Name and Description
 
Returns the current play time of the audio object
 
Returns the length of the audio object
 
Returns the current volume level of the audio object
 
Pauses playback at the currentTime
 
play()
Starts play from currentTime
 
Sets the currentTime to a new position
 
setVolume(volume)
Sets the volume to desired level range: 0 - 100
 
stop()
Stops playback and returns the currentTime to 0
Class Detail
bHive.Sound(construct, parentObject)
Creates a new bHive.Audio instance
Parameters:
construct
parentObject
Method Detail
getCurrentTime()
Returns the current play time of the audio object

getDuration()
Returns the length of the audio object

getVolume()
Returns the current volume level of the audio object

pause()
Pauses playback at the currentTime

play()
Starts play from currentTime

setCurrentTime(pos)
Sets the currentTime to a new position
Parameters:
pos

setVolume(volume)
Sets the volume to desired level range: 0 - 100
Parameters:
volume

stop()
Stops playback and returns the currentTime to 0

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 25 2011 15:15:50 GMT+0400 (GST)