转码 的状态,嘿嘿,小bug,少了一个 !
+ (int)amrToWav:(NSString*)_amrPath wavSavePath:(NSString*)_savePath{
if (! DecodeAMRFileToWAVEFile([_amrPath cStringUsingEncoding:NSASCIIStringEncoding], [_savePath cStringUsingEncoding:NSASCIIStringEncoding]))
return 0;
return 1;
}
+ (int)wavToAmr:(NSString*)_wavPath amrSavePath:(NSString*)_savePath{
if (EncodeWAVEFileToAMRFile([_wavPath cStringUsingEncoding:NSASCIIStringEncoding], [_savePath cStringUsingEncoding:NSASCIIStringEncoding], 1, 16))
return 0;
return 1;
}