Safe Haskell | None |
---|
- delete :: HG3DClass -> IO ()
- play :: HG3DClass -> IO ()
- pause :: HG3DClass -> IO ()
- stop :: HG3DClass -> IO ()
- getChannelCount :: HG3DClass -> IO Int
- getSampleRate :: HG3DClass -> IO Int
- setLoop :: HG3DClass -> Bool -> IO ()
- getLoop :: HG3DClass -> IO Bool
- delete'_ :: HG3DClassPtr -> IO ()
- play'_ :: HG3DClassPtr -> IO ()
- pause'_ :: HG3DClassPtr -> IO ()
- stop'_ :: HG3DClassPtr -> IO ()
- getChannelCount'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()
- getSampleRate'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()
- setLoop'_ :: HG3DClassPtr -> CInt -> IO ()
- getLoop'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
Documentation
Destructor.
Pause the audio stream. - Details: This function pauses the stream if it was playing, otherwise (stream already paused or stopped) it has no effect.
Start or resume playing the audio stream. - Details: This function starts the stream if it was stopped, resumes it if it was paused, and restarts it from beginning if it was it already playing. This function uses its own thread so that it doesn't block the rest of the program while the stream is played.
Stop playing the audio stream. - Details: This function stops the stream if it was playing or paused, and does nothing if it was already stopped. It also resets the playing position (unlike pause()
Return the number of channels of the stream. - Details: 1 channel means a mono sound, 2 means stereo, etc.
Get the stream sample rate of the stream. - Details: The sample rate is the number of audio samples played per second. The higher, the better the quality.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | loop |
-> IO () |
Tell whether or not the stream is in loop mode. - Details: setLoop
Set whether or not the stream should loop after reaching the end. - Details: If set, the stream will restart from beginning after reaching the end and so on, until it is stopped or setLoop(false) is called. The default looping state for streams is false.
delete'_ :: HG3DClassPtr -> IO ()Source
play'_ :: HG3DClassPtr -> IO ()Source
pause'_ :: HG3DClassPtr -> IO ()Source
stop'_ :: HG3DClassPtr -> IO ()Source
getChannelCount'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()Source
getSampleRate'_ :: HG3DClassPtr -> Ptr CUInt -> IO ()Source
setLoop'_ :: HG3DClassPtr -> CInt -> IO ()Source