3,248
社区成员
发帖
与我相关
我的任务
分享1>------ 已启动全部重新生成: 项目: NspeexWrapperEx, 配置: Debug Win32 ------
1>正在删除项目“NspeexWrapperEx”(配置“Debug|Win32”)的中间文件和输出文件
1>正在编译...
1>Stdafx.cpp
1>正在编译...
1>AssemblyInfo.cpp
1>NspeexWrapperEx.cpp
1>正在生成代码...
1>正在编译资源...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>正在链接...
1>fatal error C1900: “P1”(第“20080116”版)和“P2”(第“20070207”版)之间 Il 不匹配
1>LINK : fatal error LNK1257: 代码生成失败
1>生成日志保存在“file://c:\Documents and Settings\Administrator\桌面\nspeex\nspeex-33307\NspeexWrapperEx\Debug\BuildLog.htm”
1>NspeexWrapperEx - 1 个错误,0 个警告
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
// NsWEx.h
#pragma once
#include "..//include//speex//speex.h"
#pragma comment(lib, "..//lib//speex//libspeex.lib")
#include <vector>
#include <iostream>
using namespace std;
using namespace System;
using namespace System::Runtime::InteropServices;
namespace NsWEx {
public enum EncodingMode
{
NarrowBand = 0,
WideBand = 1,
UltraWideBand = 2
};
const SpeexMode* ConvertToSpeexMode(EncodingMode mode)
{
const SpeexMode *speexMode = (SpeexMode*)0;
switch (mode)
{
case NarrowBand:
speexMode = (SpeexMode*)0;
break;
case WideBand:
speexMode = (SpeexMode*)1;
break;
case UltraWideBand:
speexMode = (SpeexMode*)2;
break;
default:
speexMode = (SpeexMode*)0;
}
return speexMode;
}
public ref class NSpeexControl
{
public:
NSpeexControl(bool isEncoder, EncodingMode mode)
{
this->isEncoder = isEncoder;
if (isEncoder)
{
speex_encoder_init(0);
//ConvertToSpeexMode(mode);
}
else
;//enc_state = speex_decoder_init(ConvertToSpeexMode(mode));
}
~NSpeexControl()
{}
protected:
void* enc_state;
private:
bool isEncoder;
};
}