conduit-audio-lame-0.1.1: conduit-audio interface to the LAME MP3 library

Safe HaskellSafe
LanguageHaskell2010

Data.Conduit.Audio.LAME.Binding

Documentation

newtype LAME Source

Constructors

LAME (Ptr LAME) 

fromCEnum :: Enum a => a -> CInt Source

toCEnum :: Enum a => CInt -> a Source

encodeBuffer Source

Arguments

:: LAME 
-> Ptr CShort

PCM data for left channel

-> Ptr CShort

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferInterleaved Source

Arguments

:: LAME 
-> Ptr CShort

PCM data for left and right channel, interleaved

-> Int

number of samples per channel, not number of samples overall

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferFloat Source

Arguments

:: LAME 
-> Ptr CFloat

PCM data for left channel

-> Ptr CFloat

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferIeeeFloat Source

Arguments

:: LAME 
-> Ptr CFloat

PCM data for left channel

-> Ptr CFloat

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferInterleavedIeeeFloat Source

Arguments

:: LAME 
-> Ptr CFloat

PCM data for left and right channel, interleaved

-> Int

number of samples per channel, not number of samples overall

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferIeeeDouble Source

Arguments

:: LAME 
-> Ptr CDouble

PCM data for left channel

-> Ptr CDouble

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferInterleavedIeeeDouble Source

Arguments

:: LAME 
-> Ptr CDouble

PCM data for left and right channel, interleaved

-> Int

number of samples per channel, not number of samples overall

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferLong Source

Arguments

:: LAME 
-> Ptr CLong

PCM data for left channel

-> Ptr CLong

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferLong2 Source

Arguments

:: LAME 
-> Ptr CLong

PCM data for left channel

-> Ptr CLong

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeBufferInt Source

Arguments

:: LAME 
-> Ptr CInt

PCM data for left channel

-> Ptr CInt

PCM data for right channel

-> Int

number of samples per channel

-> Ptr CUChar

pointer to encoded MP3 stream

-> Int

number of valid octets in this stream

-> IO Int 

encodeFlush Source

Arguments

:: LAME 
-> Ptr CUChar

pointer to encoded MP3 stream

-> Int 
-> IO Int 

encodeFlushNogap Source

Arguments

:: LAME 
-> Ptr CUChar

pointer to encoded MP3 stream

-> Int 
-> IO Int 

check :: IO Int -> IO () Source