Safe Haskell | None |
---|
- new :: IO HG3DClass
- delete :: HG3DClass -> IO ()
- loadFromFile :: HG3DClass -> String -> IO Bool
- saveToFile :: HG3DClass -> String -> IO Bool
- getSampleRate :: HG3DClass -> IO Int
- getChannelCount :: HG3DClass -> IO Int
- new'_ :: HG3DClassPtr -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
- loadFromFile'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CInt -> IO ()
- saveToFile'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CInt -> IO ()
- getSampleRate'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()
- getChannelCount'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()
Documentation
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.
:: 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.
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).
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.
new'_ :: HG3DClassPtr -> IO ()Source
delete'_ :: HG3DClassPtr -> IO ()Source
loadFromFile'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CInt -> IO ()Source
saveToFile'_ :: HG3DClassPtr -> Ptr CChar -> Ptr CInt -> IO ()Source
getSampleRate'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()Source
getChannelCount'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()Source