{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaConvert.Types.AacAudioDescriptionBroadcasterMix
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.AacAudioDescriptionBroadcasterMix
  ( AacAudioDescriptionBroadcasterMix
      ( ..,
        AacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD,
        AacAudioDescriptionBroadcasterMix_NORMAL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Choose BROADCASTER_MIXED_AD when the input contains pre-mixed main audio
-- + audio description (AD) as a stereo pair. The value for AudioType will
-- be set to 3, which signals to downstream systems that this stream
-- contains \"broadcaster mixed AD\". Note that the input received by the
-- encoder must contain pre-mixed audio; the encoder does not perform the
-- mixing. When you choose BROADCASTER_MIXED_AD, the encoder ignores any
-- values you provide in AudioType and FollowInputAudioType. Choose NORMAL
-- when the input does not contain pre-mixed audio + audio description
-- (AD). In this case, the encoder will use any values you provide for
-- AudioType and FollowInputAudioType.
newtype AacAudioDescriptionBroadcasterMix = AacAudioDescriptionBroadcasterMix'
  { AacAudioDescriptionBroadcasterMix -> Text
fromAacAudioDescriptionBroadcasterMix ::
      Core.Text
  }
  deriving stock
    ( Int -> AacAudioDescriptionBroadcasterMix -> ShowS
[AacAudioDescriptionBroadcasterMix] -> ShowS
AacAudioDescriptionBroadcasterMix -> String
(Int -> AacAudioDescriptionBroadcasterMix -> ShowS)
-> (AacAudioDescriptionBroadcasterMix -> String)
-> ([AacAudioDescriptionBroadcasterMix] -> ShowS)
-> Show AacAudioDescriptionBroadcasterMix
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AacAudioDescriptionBroadcasterMix] -> ShowS
$cshowList :: [AacAudioDescriptionBroadcasterMix] -> ShowS
show :: AacAudioDescriptionBroadcasterMix -> String
$cshow :: AacAudioDescriptionBroadcasterMix -> String
showsPrec :: Int -> AacAudioDescriptionBroadcasterMix -> ShowS
$cshowsPrec :: Int -> AacAudioDescriptionBroadcasterMix -> ShowS
Prelude.Show,
      ReadPrec [AacAudioDescriptionBroadcasterMix]
ReadPrec AacAudioDescriptionBroadcasterMix
Int -> ReadS AacAudioDescriptionBroadcasterMix
ReadS [AacAudioDescriptionBroadcasterMix]
(Int -> ReadS AacAudioDescriptionBroadcasterMix)
-> ReadS [AacAudioDescriptionBroadcasterMix]
-> ReadPrec AacAudioDescriptionBroadcasterMix
-> ReadPrec [AacAudioDescriptionBroadcasterMix]
-> Read AacAudioDescriptionBroadcasterMix
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AacAudioDescriptionBroadcasterMix]
$creadListPrec :: ReadPrec [AacAudioDescriptionBroadcasterMix]
readPrec :: ReadPrec AacAudioDescriptionBroadcasterMix
$creadPrec :: ReadPrec AacAudioDescriptionBroadcasterMix
readList :: ReadS [AacAudioDescriptionBroadcasterMix]
$creadList :: ReadS [AacAudioDescriptionBroadcasterMix]
readsPrec :: Int -> ReadS AacAudioDescriptionBroadcasterMix
$creadsPrec :: Int -> ReadS AacAudioDescriptionBroadcasterMix
Prelude.Read,
      AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
(AacAudioDescriptionBroadcasterMix
 -> AacAudioDescriptionBroadcasterMix -> Bool)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Bool)
-> Eq AacAudioDescriptionBroadcasterMix
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c/= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
== :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c== :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
Prelude.Eq,
      Eq AacAudioDescriptionBroadcasterMix
Eq AacAudioDescriptionBroadcasterMix
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Ordering)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Bool)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Bool)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Bool)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix -> Bool)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix)
-> (AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix
    -> AacAudioDescriptionBroadcasterMix)
-> Ord AacAudioDescriptionBroadcasterMix
AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Ordering
AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
$cmin :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
max :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
$cmax :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix
>= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c>= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
> :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c> :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
<= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c<= :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
< :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
$c< :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Bool
compare :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Ordering
$ccompare :: AacAudioDescriptionBroadcasterMix
-> AacAudioDescriptionBroadcasterMix -> Ordering
$cp1Ord :: Eq AacAudioDescriptionBroadcasterMix
Prelude.Ord,
      (forall x.
 AacAudioDescriptionBroadcasterMix
 -> Rep AacAudioDescriptionBroadcasterMix x)
-> (forall x.
    Rep AacAudioDescriptionBroadcasterMix x
    -> AacAudioDescriptionBroadcasterMix)
-> Generic AacAudioDescriptionBroadcasterMix
forall x.
Rep AacAudioDescriptionBroadcasterMix x
-> AacAudioDescriptionBroadcasterMix
forall x.
AacAudioDescriptionBroadcasterMix
-> Rep AacAudioDescriptionBroadcasterMix x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AacAudioDescriptionBroadcasterMix x
-> AacAudioDescriptionBroadcasterMix
$cfrom :: forall x.
AacAudioDescriptionBroadcasterMix
-> Rep AacAudioDescriptionBroadcasterMix x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AacAudioDescriptionBroadcasterMix -> Int
AacAudioDescriptionBroadcasterMix -> Int
(Int -> AacAudioDescriptionBroadcasterMix -> Int)
-> (AacAudioDescriptionBroadcasterMix -> Int)
-> Hashable AacAudioDescriptionBroadcasterMix
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AacAudioDescriptionBroadcasterMix -> Int
$chash :: AacAudioDescriptionBroadcasterMix -> Int
hashWithSalt :: Int -> AacAudioDescriptionBroadcasterMix -> Int
$chashWithSalt :: Int -> AacAudioDescriptionBroadcasterMix -> Int
Prelude.Hashable,
      AacAudioDescriptionBroadcasterMix -> ()
(AacAudioDescriptionBroadcasterMix -> ())
-> NFData AacAudioDescriptionBroadcasterMix
forall a. (a -> ()) -> NFData a
rnf :: AacAudioDescriptionBroadcasterMix -> ()
$crnf :: AacAudioDescriptionBroadcasterMix -> ()
Prelude.NFData,
      Text -> Either String AacAudioDescriptionBroadcasterMix
(Text -> Either String AacAudioDescriptionBroadcasterMix)
-> FromText AacAudioDescriptionBroadcasterMix
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AacAudioDescriptionBroadcasterMix
$cfromText :: Text -> Either String AacAudioDescriptionBroadcasterMix
Core.FromText,
      AacAudioDescriptionBroadcasterMix -> Text
(AacAudioDescriptionBroadcasterMix -> Text)
-> ToText AacAudioDescriptionBroadcasterMix
forall a. (a -> Text) -> ToText a
toText :: AacAudioDescriptionBroadcasterMix -> Text
$ctoText :: AacAudioDescriptionBroadcasterMix -> Text
Core.ToText,
      AacAudioDescriptionBroadcasterMix -> ByteString
(AacAudioDescriptionBroadcasterMix -> ByteString)
-> ToByteString AacAudioDescriptionBroadcasterMix
forall a. (a -> ByteString) -> ToByteString a
toBS :: AacAudioDescriptionBroadcasterMix -> ByteString
$ctoBS :: AacAudioDescriptionBroadcasterMix -> ByteString
Core.ToByteString,
      AacAudioDescriptionBroadcasterMix -> ByteStringBuilder
(AacAudioDescriptionBroadcasterMix -> ByteStringBuilder)
-> ToLog AacAudioDescriptionBroadcasterMix
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AacAudioDescriptionBroadcasterMix -> ByteStringBuilder
$cbuild :: AacAudioDescriptionBroadcasterMix -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AacAudioDescriptionBroadcasterMix -> [Header]
(HeaderName -> AacAudioDescriptionBroadcasterMix -> [Header])
-> ToHeader AacAudioDescriptionBroadcasterMix
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AacAudioDescriptionBroadcasterMix -> [Header]
$ctoHeader :: HeaderName -> AacAudioDescriptionBroadcasterMix -> [Header]
Core.ToHeader,
      AacAudioDescriptionBroadcasterMix -> QueryString
(AacAudioDescriptionBroadcasterMix -> QueryString)
-> ToQuery AacAudioDescriptionBroadcasterMix
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AacAudioDescriptionBroadcasterMix -> QueryString
$ctoQuery :: AacAudioDescriptionBroadcasterMix -> QueryString
Core.ToQuery,
      Value -> Parser [AacAudioDescriptionBroadcasterMix]
Value -> Parser AacAudioDescriptionBroadcasterMix
(Value -> Parser AacAudioDescriptionBroadcasterMix)
-> (Value -> Parser [AacAudioDescriptionBroadcasterMix])
-> FromJSON AacAudioDescriptionBroadcasterMix
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AacAudioDescriptionBroadcasterMix]
$cparseJSONList :: Value -> Parser [AacAudioDescriptionBroadcasterMix]
parseJSON :: Value -> Parser AacAudioDescriptionBroadcasterMix
$cparseJSON :: Value -> Parser AacAudioDescriptionBroadcasterMix
Core.FromJSON,
      FromJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
FromJSONKeyFunction AacAudioDescriptionBroadcasterMix
FromJSONKeyFunction AacAudioDescriptionBroadcasterMix
-> FromJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
-> FromJSONKey AacAudioDescriptionBroadcasterMix
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
$cfromJSONKeyList :: FromJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
fromJSONKey :: FromJSONKeyFunction AacAudioDescriptionBroadcasterMix
$cfromJSONKey :: FromJSONKeyFunction AacAudioDescriptionBroadcasterMix
Core.FromJSONKey,
      [AacAudioDescriptionBroadcasterMix] -> Encoding
[AacAudioDescriptionBroadcasterMix] -> Value
AacAudioDescriptionBroadcasterMix -> Encoding
AacAudioDescriptionBroadcasterMix -> Value
(AacAudioDescriptionBroadcasterMix -> Value)
-> (AacAudioDescriptionBroadcasterMix -> Encoding)
-> ([AacAudioDescriptionBroadcasterMix] -> Value)
-> ([AacAudioDescriptionBroadcasterMix] -> Encoding)
-> ToJSON AacAudioDescriptionBroadcasterMix
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AacAudioDescriptionBroadcasterMix] -> Encoding
$ctoEncodingList :: [AacAudioDescriptionBroadcasterMix] -> Encoding
toJSONList :: [AacAudioDescriptionBroadcasterMix] -> Value
$ctoJSONList :: [AacAudioDescriptionBroadcasterMix] -> Value
toEncoding :: AacAudioDescriptionBroadcasterMix -> Encoding
$ctoEncoding :: AacAudioDescriptionBroadcasterMix -> Encoding
toJSON :: AacAudioDescriptionBroadcasterMix -> Value
$ctoJSON :: AacAudioDescriptionBroadcasterMix -> Value
Core.ToJSON,
      ToJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
ToJSONKeyFunction AacAudioDescriptionBroadcasterMix
ToJSONKeyFunction AacAudioDescriptionBroadcasterMix
-> ToJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
-> ToJSONKey AacAudioDescriptionBroadcasterMix
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
$ctoJSONKeyList :: ToJSONKeyFunction [AacAudioDescriptionBroadcasterMix]
toJSONKey :: ToJSONKeyFunction AacAudioDescriptionBroadcasterMix
$ctoJSONKey :: ToJSONKeyFunction AacAudioDescriptionBroadcasterMix
Core.ToJSONKey,
      [Node] -> Either String AacAudioDescriptionBroadcasterMix
([Node] -> Either String AacAudioDescriptionBroadcasterMix)
-> FromXML AacAudioDescriptionBroadcasterMix
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AacAudioDescriptionBroadcasterMix
$cparseXML :: [Node] -> Either String AacAudioDescriptionBroadcasterMix
Core.FromXML,
      AacAudioDescriptionBroadcasterMix -> XML
(AacAudioDescriptionBroadcasterMix -> XML)
-> ToXML AacAudioDescriptionBroadcasterMix
forall a. (a -> XML) -> ToXML a
toXML :: AacAudioDescriptionBroadcasterMix -> XML
$ctoXML :: AacAudioDescriptionBroadcasterMix -> XML
Core.ToXML
    )

pattern AacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD :: AacAudioDescriptionBroadcasterMix
pattern $bAacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD :: AacAudioDescriptionBroadcasterMix
$mAacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD :: forall r.
AacAudioDescriptionBroadcasterMix
-> (Void# -> r) -> (Void# -> r) -> r
AacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD = AacAudioDescriptionBroadcasterMix' "BROADCASTER_MIXED_AD"

pattern AacAudioDescriptionBroadcasterMix_NORMAL :: AacAudioDescriptionBroadcasterMix
pattern $bAacAudioDescriptionBroadcasterMix_NORMAL :: AacAudioDescriptionBroadcasterMix
$mAacAudioDescriptionBroadcasterMix_NORMAL :: forall r.
AacAudioDescriptionBroadcasterMix
-> (Void# -> r) -> (Void# -> r) -> r
AacAudioDescriptionBroadcasterMix_NORMAL = AacAudioDescriptionBroadcasterMix' "NORMAL"

{-# COMPLETE
  AacAudioDescriptionBroadcasterMix_BROADCASTER_MIXED_AD,
  AacAudioDescriptionBroadcasterMix_NORMAL,
  AacAudioDescriptionBroadcasterMix'
  #-}