module Sound.Freesound.Sound (
SoundId(..)
, FileType(..)
, GeoTag(..)
, Sound(..)
, Summary
, Detail
, url
, description
, geotag
, created
, sound_license
, fileType
, channels
, filesize
, bitrate
, bitdepth
, duration
, samplerate
, sound_username
, pack
, download
, bookmark
, previews
, images
, numDownloads
, avgRating
, numRatings
, rate
, comments
, numComments
, comment
, similarSounds
, analysisStats
, analysisFrames
, soundById
, soundDetail
) where
import qualified Data.Text as T
import Sound.Freesound.API (Freesound, get, resourceURI)
import Sound.Freesound.Sound.Type as Sound
soundById :: SoundId -> Freesound Detail
soundById (SoundId i) = get $ resourceURI ["sounds", T.pack (show i)] []
soundDetail :: Summary -> Freesound Detail
soundDetail = soundById . Sound.id