示例#1
0
文件: audio_libamp.c 项目: cravo/damp
int lamp_open(char *filename)
{
   int x = load_amp(filename,0);

   audio_driver->layer = amp_layer;
   audio_driver->version = amp_mpg_ver;
   audio_driver->bitrate = amp_bitrate;
   audio_driver->sample_rate = amp_samprat;
   audio_driver->stereo = amp_stereo;

   return(x);
}
示例#2
0
文件: tinterp.c 项目: fl04t/codec2
void load_or_make_amp(MODEL *model,
                      const char * filename, int frame,
                      float f0, float cdB, float mdBHz)
{
    struct stat buf;
    int rc = stat(filename, &buf);
    if (rc || !S_ISREG(buf.st_mode) || ((buf.st_mode & S_IRUSR) != S_IRUSR))
    {
        make_amp(model, f0, cdB, mdBHz);
    }
    else
    {
        load_amp(model, filename, frame);
    }
}