Maintainer | gtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC) |
---|---|
Safe Haskell | None |
Language | Haskell98 |
- data Format
- data FormatDefinition = FormatDefinition {}
- data FormatId
- formatPercentMax :: Int64
- formatPercentScale :: Int64
- formatGetName :: Format -> IO String
- formatToQuark :: Format -> IO Quark
- formatRegister :: String -> String -> IO Format
- formatGetByNick :: String -> IO Format
- formatGetDetails :: Format -> IO (Maybe FormatDefinition)
- formatIterateDefinitions :: IO (Iterator FormatDefinition)
Types
An enumeration of standard predefined formats.
FormatUndefined | no format |
FormatDefault | the default format of the pad or element; this can be, e.g., samples for raw audio |
FormatBytes | bytes |
FormatTime | time in nanoseconds |
FormatBuffers | buffers |
FormatPercent | percentage of stream |
FormatUser FormatId | a user defined format |
data FormatDefinition Source #
A format definition.
FormatDefinition | |
|
A format identifier.
Format Operations
formatPercentMax :: Int64 Source #
The format value for FormatPercent
is between 0 and this value.
formatPercentScale :: Int64 Source #
The value used to scale down the reported FormatPercent
format
value to its real value.
Get a printable name for the given format.
Get the unique quark for the given format.
:: String |
|
-> String |
|
-> IO Format | the format with the given nickname |
Create a new format based on the given nickname, or register a new format with that nickname.
:: String |
|
-> IO Format | the format with the given nickname,
or |
Get the format with the given nickname, or FormatUndefined
if
no format by that nickname was found.
:: Format |
|
-> IO (Maybe FormatDefinition) | the definition for the given format, or
|
Get the given format's definition.
formatIterateDefinitions :: IO (Iterator FormatDefinition) Source #
Get an Iterator over all registered formats.