mediabus-0.4.0.1: Multimedia streaming on top of Conduit

Safe HaskellNone
LanguageHaskell2010

Data.MediaBus.Media.Audio.Raw.Signed16bit

Description

This module defines the 16-bit PCM audio sample type.

Synopsis

Documentation

newtype S16 Source #

A value representing a signed PCM audio sample with a width of 16 bit.

Constructors

MkS16 Int16 

Instances

Eq S16 Source # 

Methods

(==) :: S16 -> S16 -> Bool #

(/=) :: S16 -> S16 -> Bool #

Num S16 Source # 

Methods

(+) :: S16 -> S16 -> S16 #

(-) :: S16 -> S16 -> S16 #

(*) :: S16 -> S16 -> S16 #

negate :: S16 -> S16 #

abs :: S16 -> S16 #

signum :: S16 -> S16 #

fromInteger :: Integer -> S16 #

Ord S16 Source # 

Methods

compare :: S16 -> S16 -> Ordering #

(<) :: S16 -> S16 -> Bool #

(<=) :: S16 -> S16 -> Bool #

(>) :: S16 -> S16 -> Bool #

(>=) :: S16 -> S16 -> Bool #

max :: S16 -> S16 -> S16 #

min :: S16 -> S16 -> S16 #

Show S16 Source # 

Methods

showsPrec :: Int -> S16 -> ShowS #

show :: S16 -> String #

showList :: [S16] -> ShowS #

Arbitrary S16 Source # 

Methods

arbitrary :: Gen S16 #

shrink :: S16 -> [S16] #

Storable S16 Source # 

Methods

sizeOf :: S16 -> Int #

alignment :: S16 -> Int #

peekElemOff :: Ptr S16 -> Int -> IO S16 #

pokeElemOff :: Ptr S16 -> Int -> S16 -> IO () #

peekByteOff :: Ptr b -> Int -> IO S16 #

pokeByteOff :: Ptr b -> Int -> S16 -> IO () #

peek :: Ptr S16 -> IO S16 #

poke :: Ptr S16 -> S16 -> IO () #

Bits S16 Source # 

Methods

(.&.) :: S16 -> S16 -> S16 #

(.|.) :: S16 -> S16 -> S16 #

xor :: S16 -> S16 -> S16 #

complement :: S16 -> S16 #

shift :: S16 -> Int -> S16 #

rotate :: S16 -> Int -> S16 #

zeroBits :: S16 #

bit :: Int -> S16 #

setBit :: S16 -> Int -> S16 #

clearBit :: S16 -> Int -> S16 #

complementBit :: S16 -> Int -> S16 #

testBit :: S16 -> Int -> Bool #

bitSizeMaybe :: S16 -> Maybe Int #

bitSize :: S16 -> Int #

isSigned :: S16 -> Bool #

shiftL :: S16 -> Int -> S16 #

unsafeShiftL :: S16 -> Int -> S16 #

shiftR :: S16 -> Int -> S16 #

unsafeShiftR :: S16 -> Int -> S16 #

rotateL :: S16 -> Int -> S16 #

rotateR :: S16 -> Int -> S16 #

popCount :: S16 -> Int #

Default S16 Source # 

Methods

def :: S16 #

NFData S16 Source # 

Methods

rnf :: S16 -> () #

CanBeBlank S16 Source # 

Methods

blank :: S16 Source #

IsPcmValue S16 Source # 

Methods

pcmAverage :: S16 -> S16 -> S16 Source #

s16Sample :: Iso' S16 Int16 Source #

An Iso from/to the sample value of an S16