#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
 
static int debug_level = -1;
static char *plugin_search_path = NULL;
 
    {"-path", NULL, "plugin search path", NULL,
         SP_TYPE_STRING, &plugin_search_path, NULL},
    {"-debug", NULL, "debug level", NULL,
         SP_TYPE_INT, &debug_level, NULL},
    {"-help", "-h", "display this message", NULL,
};
 
static const char *filelabel[] = {
    "",
};
 
int spMain(int argc, char *argv[])
{
    int k, l;
    int num_driver;
    char *driver_name;
    int num_device;
    char *device_name;
 
    
    
        spDebug(10, 
"spMain", 
"plugin_search_path: %s\n", plugin_search_path);
 
    }
 
    {
        spMessage(
"number of driver device = %d\n", num_device);
 
 
        for (l = 0; l < num_device; l++) {
                spMessage(
"driver device %d = %s\n", l, device_name);
 
            }
        }
    }
 
        
    for (k = 0; k < num_driver; k++) {
            spMessage(
"driver %d = %s\n", k, driver_name);
 
 
                    for (l = 0; l < num_device; l++) {
                            spMessage(
"device %d = %s\n", l, device_name);
 
 
                        }
                        
                        } else {
                            } else {
                                spMessage(
"Device successfully opened: %d\n", l);
 
                            }
                        }
                    }
                }
                spFreeAudioDriver(audio);
            } else {
                spMessage(
"Can't open audio driver: %s\n", driver_name);
 
            }
            
        }
    }
    
    return 0;
}
char * xspGetAudioDriverName(int index)
char * xspGetAudioDriverDeviceName(const char *driver_name, int index)
int spGetNumAudioDriver(void)
int spGetNumAudioDriverDevice(const char *driver_name)
void spSetDebugLevel(int level)
void spMessage(const char *format,...)
void spDebug(int level, const char *func_name, const char *format,...)
#define spStrNone(string)
#define spGetOptions(argc, argv, option, file_label)
struct _spOptions * spOptions
void spGetOptionsValue(int argc, char **argv, spOptions options)
void spSetHelpMessage(spBool *flag, const char *format,...)
void spSetPluginSearchPath(const char *pathlist)
spAudio spInitAudioDriver(const char *driver_name)
spBool spGetNumAudioDevice(spAudio audio, int *num_device)
char * xspGetAudioDeviceName(spAudio audio, int device_index)
spBool spSelectAudioDevice(spAudio audio, int device_index)
spBool spOpenAudioDevice(spAudio audio, const char *mode)
spBool spCloseAudioDevice(spAudio audio)