Tag: libsndfile

如何找到正确的RAW格式

我有这个代码 SNDFILE *sf; SF_INFO info; int num_channels; int num, num_items; int *buf; int f,sr,c; int i,j; FILE *out; /* Open the WAV file. */ info.format = (SF_FORMAT_RAW | SF_FORMAT_PCM_16); info.samplerate = 44100; info.channels = 2; sf = sf_open(“test.raw”,SFM_READ,&info); if (sf == NULL) { printf(“Failed to open the file. ( %d )\n”,sf_perror(sf)); exit(-1); } /* Print […]

Visual Studio 2010中的“错误LNK2019:未解析的外部符号”错误

我正在尝试编译并运行一个使用libsndfile库进行声音文件处理的C代码。 我使用此路径添加了头文件: project’s Properties (in C/C++ -> General -> Additional Include Directories) 此外,我已使用此路径链接库: Project Properties -> Linker -> Input -> Additional Dependencies. 但在调试时,我收到以下错误: 1>sil.obj : warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/INCREMENTAL:NO’ specification 1>sil.obj : error LNK2019: unresolved external symbol _sf_write_sync referenced in function _main 1>sil.obj : error LNK2019: unresolved external symbol _sf_write_double referenced in […]