HGamer3D-SFML-Binding-0.1.9: Windows Game Engine for the Haskell Programmer - SFML Bindings

Safe HaskellNone

HGamer3D.Bindings.SFML.ClassSoundBuffer

Synopsis

Documentation

newSource

Arguments

:: IO HG3DClass 

Default constructor.

deleteSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance which is going to be deleted.

-> IO () 

Load the sound buffer from a file. - Details: Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

Destructor.

loadFromFileSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

filename

-> IO Bool 

saveToFileSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

filename

-> IO Bool 

Save the sound buffer to an audio file. - Details: Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

getSampleRateSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Get the sample rate of the sound. - Details: The sample rate is the number of samples played per second. The higher, the better the quality (for example, 44100 samples/s is CD quality).

getChannelCountSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int 

Get the number of channels used by the sound. - Details: If the sound is mono then the number of channels will be 1, 2 for stereo, etc.