OpenAL-1.6.0.1: src/Sound/OpenAL/ALC/ALCboolean.hs
{-# OPTIONS_HADDOCK hide #-}
--------------------------------------------------------------------------------
-- |
-- Module : Sound.OpenAL.ALC.ALCboolean
-- Copyright : (c) Sven Panne 2003-2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-- This is a purely internal module for (un-)marshaling ALCboolean.
--
--------------------------------------------------------------------------------
module Sound.OpenAL.ALC.ALCboolean (
marshalALCboolean, unmarshalALCboolean
) where
import Sound.OpenAL.ALC.BasicTypes ( ALCboolean )
import Sound.OpenAL.Constants ( alc_FALSE, alc_TRUE )
--------------------------------------------------------------------------------
marshalALCboolean :: Bool -> ALCboolean
marshalALCboolean False = alc_FALSE
marshalALCboolean True = alc_TRUE
unmarshalALCboolean :: ALCboolean -> Bool
unmarshalALCboolean = (/= alc_FALSE)