1 #include <bindings.dsl.h>
4 module Bindings.EsounD where
7 #globalarray ESD_UNIX_SOCKET_DIR , CChar
8 #globalarray ESD_UNIX_SOCKET_NAME, CChar
11 #num ESD_MAX_WRITE_SIZE
19 #num ESD_PROTO_CONNECT
22 #num ESD_PROTO_STREAM_PLAY
23 #num ESD_PROTO_STREAM_REC
24 #num ESD_PROTO_STREAM_MON
25 #num ESD_PROTO_SAMPLE_CACHE
26 #num ESD_PROTO_SAMPLE_FREE
27 #num ESD_PROTO_SAMPLE_PLAY
28 #num ESD_PROTO_SAMPLE_LOOP
29 #num ESD_PROTO_SAMPLE_STOP
30 #num ESD_PROTO_SAMPLE_KILL
31 #num ESD_PROTO_STANDBY
33 #num ESD_PROTO_SAMPLE_GETID
34 #num ESD_PROTO_STREAM_FILT
35 #num ESD_PROTO_SERVER_INFO
36 #num ESD_PROTO_ALL_INFO
37 #num ESD_PROTO_SUBSCRIBE
38 #num ESD_PROTO_UNSUBSCRIBE
39 #num ESD_PROTO_STREAM_PAN
40 #num ESD_PROTO_SAMPLE_PAN
41 #num ESD_PROTO_STANDBY_MODE
42 #num ESD_PROTO_LATENCY
65 #integral_t esd_format_t
66 #integral_t esd_proto_t
70 #ccall esd_open_sound, Ptr CChar -> IO CInt
71 #ccall esd_send_auth , CInt -> IO CInt
72 #ccall esd_lock , CInt -> IO CInt
73 #ccall esd_unlock , CInt -> IO CInt
74 #ccall esd_standby , CInt -> IO CInt
75 #ccall esd_resume , CInt -> IO CInt
77 #ccall esd_play_stream , <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
78 #ccall esd_play_stream_fallback , <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
79 #ccall esd_monitor_stream , <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
80 #ccall esd_record_stream , <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
81 #ccall esd_record_stream_fallback, <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
82 #ccall esd_filter_stream , <esd_format_t> -> CInt -> Ptr CChar -> Ptr CChar -> IO CInt
83 #ccall esd_sample_cache , CInt -> <esd_format_t> -> CInt -> CInt -> Ptr CChar -> IO CInt
84 #ccall esd_confirm_sample_cache , CInt -> IO CInt
85 #ccall esd_sample_getid , CInt -> Ptr CChar -> IO CInt
86 #ccall esd_sample_free , CInt -> CInt -> IO CInt
87 #ccall esd_sample_play , CInt -> CInt -> IO CInt
88 #ccall esd_sample_loop , CInt -> CInt -> IO CInt
89 #ccall esd_sample_stop , CInt -> CInt -> IO CInt
90 #ccall esd_sample_kill , CInt -> CInt -> IO CInt
91 #ccall esd_close , CInt -> IO CInt
92 #ccall esd_get_latency , CInt -> IO CInt
94 #starttype struct esd_server_info
96 # field format , <esd_format_t>
99 #synonym_t esd_server_info_t, <esd_server_info>
101 #starttype struct esd_player_info
102 # field next , Ptr <esd_player_info>
103 # field server , Ptr <esd_server_info_t>
104 # field source_id , CInt
105 # array_field name , CChar
107 # field left_vol_scale , CInt
108 # field right_vol_scale, CInt
109 # field format , <esd_format_t>
111 #synonym_t esd_player_info_t, <esd_player_info>
113 #starttype struct esd_sample_info
114 # field next , Ptr <esd_sample_info>
115 # field server , Ptr <esd_server_info_t>
116 # field sample_id , CInt
117 # array_field name , CChar
119 # field left_vol_scale , CInt
120 # field right_vol_scale, CInt
121 # field format , <esd_format_t>
122 # field length , CInt
124 #synonym_t esd_sample_info_t, <esd_sample_info>
126 #starttype struct esd_info
127 # field server , Ptr <esd_server_info_t>
128 # field player_list, Ptr <esd_player_info_t>
129 # field sample_list, Ptr <esd_sample_info_t>
131 #synonym_t esd_info_t, <esd_info>
135 #num ESM_ON_AUTOSTANDBY
137 #integral_t esd_standby_mode_t
139 #callback esd_new_player_callback_t, Ptr <esd_player_info_t> -> IO CInt
140 #callback esd_old_player_callback_t, Ptr <esd_player_info_t> -> IO CInt
141 #callback esd_new_sample_callback_t, Ptr <esd_sample_info_t> -> IO CInt
142 #callback esd_old_sample_callback_t, Ptr <esd_sample_info_t> -> IO CInt
144 #starttype struct esd_update_info_callbacks
145 # field esd_new_player_callback, Ptr <esd_new_player_callback_t>
146 # field esd_old_player_callback, Ptr <esd_old_player_callback_t>
147 # field esd_new_sample_callback, Ptr <esd_new_sample_callback_t>
148 # field esd_old_sample_callback, Ptr <esd_old_sample_callback_t>
150 #synonym_t esd_update_info_callbacks_t, <esd_update_info_callbacks>
152 #ccall esd_print_server_info , Ptr <esd_server_info_t> -> IO ()
153 #ccall esd_print_player_info , Ptr <esd_player_info_t> -> IO ()
154 #ccall esd_print_sample_info , Ptr <esd_sample_info_t> -> IO ()
155 #ccall esd_print_all_info , Ptr <esd_info_t> -> IO ()
156 #ccall esd_get_server_info , CInt -> IO (Ptr <esd_server_info_t>)
157 #ccall esd_free_server_info , Ptr <esd_server_info_t> -> IO ()
158 #ccall esd_get_all_info , CInt -> IO (Ptr <esd_info_t>)
159 #ccall esd_subscribe_all_info , CInt -> IO (Ptr <esd_info_t>)
160 #ccall esd_update_info , CInt -> Ptr <esd_info_t> -> Ptr <esd_update_info_callbacks_t> -> IO (Ptr <esd_info_t>)
161 #ccall esd_unsubscribe_info , CInt -> IO (Ptr <esd_info_t>)
162 #ccall esd_free_all_info , Ptr <esd_info_t> -> IO ()
163 #ccall esd_set_stream_pan , CInt -> CInt -> CInt -> CInt -> IO CInt
164 #ccall esd_set_default_sample_pan, CInt -> CInt -> CInt -> CInt -> IO CInt
165 #ccall esd_get_standby_mode , CInt -> IO <esd_standby_mode_t>
167 #ccall esd_send_file, CInt ->