From: PHO Date: Tue, 19 Oct 2010 15:04:03 +0000 (+0900) Subject: esd.h X-Git-Tag: RELEASE-0.1 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=7fdfe021a8468fa58f585cf9aab239dd78174835;p=bindings-EsounD.git esd.h --- diff --git a/Bindings/EsounD.hsc b/Bindings/EsounD.hsc index dffe193..9057026 100644 --- a/Bindings/EsounD.hsc +++ b/Bindings/EsounD.hsc @@ -3,6 +3,7 @@ module Bindings.EsounD where #strict_import +import Bindings.AudioFile #globalarray ESD_UNIX_SOCKET_DIR , CChar #globalarray ESD_UNIX_SOCKET_NAME, CChar @@ -164,4 +165,23 @@ module Bindings.EsounD where #ccall esd_set_default_sample_pan, CInt -> CInt -> CInt -> CInt -> IO CInt #ccall esd_get_standby_mode , CInt -> IO -#ccall esd_send_file, CInt -> +#ccall esd_send_file , CInt -> -> CInt -> IO CInt +#ccall esd_play_file , Ptr CChar -> Ptr CChar -> CInt -> IO CInt +#ccall esd_file_cache, CInt -> Ptr CChar -> Ptr CChar -> IO CInt + +#globalvar esd_audio_format, +#globalvar esd_audio_rate , CInt +#globalvar esd_audio_device, Ptr CChar + +#ccall esd_audio_devices, IO (Ptr CChar) +#ccall esd_audio_open , IO CInt +#ccall esd_audio_close , IO () +#ccall esd_audio_pause , IO () +#ccall esd_audio_write , Ptr () -> CInt -> IO CInt +#ccall esd_audio_read , Ptr () -> CInt -> IO CInt +#ccall esd_audio_flush , IO () + +#ccall esd_get_socket_dirname, IO (Ptr CChar) +#ccall esd_get_socket_name , IO (Ptr CChar) + +#ccall have_ipv6, IO CInt diff --git a/bindings-EsounD.cabal b/bindings-EsounD.cabal index e8e2a9c..8d610de 100644 --- a/bindings-EsounD.cabal +++ b/bindings-EsounD.cabal @@ -22,14 +22,15 @@ Source-Repository head Library Build-Depends: - base == 4.2.*, - bindings-DSL == 1.0.* + base == 4.2.*, + bindings-DSL == 1.0.*, + bindings-audiofile == 0.1.* Exposed-Modules: Bindings.EsounD PkgConfig-Depends: - esound >= 0.2 + esound >= 0.2.41 C-Sources: cbits/helper_EsounD.c