#ifndef __DUMB_BI__
#define __DUMB_BI__


'  ###########
' # dumb.bi #
'###########
#inclib "dumb"

extern "c"

declare sub      dumb_exit
declare sub      dumb_register_stdfiles
declare function load_duh                            (filename as const zstring ptr) as any ptr
declare function dumb_load_it                        (filename as const zstring ptr) as any ptr
declare function dumb_load_xm                        (filename as const zstring ptr) as any ptr
declare function dumb_load_s3m                       (filename as const zstring ptr) as any ptr
declare function dumb_load_mod                       (filename as const zstring ptr) as any ptr
declare function duh_get_length                      (pDuh as any ptr) as long
declare sub      unload_duh                          (pDuh as any ptr)
declare function duh_start_sigrenderer               (pDuh as any ptr, sig as integer, nChannels as integer, pos as integer) as any ptr
declare function duh_render                          (pMod as any ptr, bits as integer, unsign as integer, volume as single, _
                                                      delta as single, nSamples as long, buffer as any ptr) as long
declare sub      duh_end_sigrenderer                 (pMod as any ptr)
declare function dumb_it_callback_terminate          (pData as any ptr) as integer
declare function duh_get_it_sigrenderer              (pMod as any ptr) as any ptr
declare sub      dumb_it_set_loop_callback           (pIt as any ptr, callback as any ptr, data as any ptr=0)
declare sub      dumb_it_set_xm_speed_zero_callback  (pIt as any ptr, callback as any ptr, data as any ptr=0)

end extern


#endif ' __DUMB_BI__