233 |
{ |
{ |
234 |
if (work == NULL) |
if (work == NULL) |
235 |
{ |
{ |
236 |
work = (struct lpcwork *) malloc(sizeof(struct lpcwork)); |
work = new lpcwork(); |
237 |
} |
} |
238 |
return work != NULL; |
return work != NULL; |
239 |
} |
} |
254 |
if ((&p->gain != ((unsigned char *) 2)) || |
if ((&p->gain != ((unsigned char *) 2)) || |
255 |
(p->k != ((signed char *) 4))) |
(p->k != ((signed char *) 4))) |
256 |
{ |
{ |
257 |
fprintf(stderr, "Alignment problem in lpcparams.h structure.\n"); |
std::cerr << "Alignment problem in lpcparams.h structure." << std::endl; |
258 |
fprintf(stderr, "Add definitions or compiler options in lpc directory\n"); |
std::cerr << "Add definitions or compiler options in lpc directory" << std::cerr; |
259 |
fprintf(stderr, "to guarantee this structure is packed.\n"); |
std::cerr << "to guarantee this structure is packed." << sd::endl; |
260 |
} |
} |
261 |
} |
} |
262 |
#endif |
#endif |