[opus] Moving from Speex to Opus
Simon GD4ELI/HB9DRV
simon at sdr-radio.com
Thu May 9 10:14:37 PDT 2013
Howdy Hermie,
I use VS2010, I compiled Opus from source generating 32-bit and 64-bit
libraries which I then link into my project. I simply link to Opus.lib and
include "\opus-1.0.1\include\opus.h" (or wherever you have the source).
I link like this (from stdafx.h):
//
// Opus.
//
#include "\opus-1.0.1\include\opus.h"
#ifdef _WIN64
#ifdef _DEBUG
#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Celt.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Opus.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_common.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_fixed.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Debug\\Silk_float.lib")
#else
#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Celt.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Opus.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_common.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_fixed.lib")
#pragma comment(lib, "\\opus-1.0.1\\x64\\Release\\Silk_float.lib")
#endif
#else
#ifdef _DEBUG
#pragma comment(lib, "\\opus-1.0.1\\Debug\\Celt.lib")
#pragma comment(lib, "\\opus-1.0.1\\Debug\\Opus.lib")
#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_common.lib")
#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_fixed.lib")
#pragma comment(lib, "\\opus-1.0.1\\Debug\\Silk_float.lib")
#else
#pragma comment(lib, "\\opus-1.0.1\\Release\\Celt.lib")
#pragma comment(lib, "\\opus-1.0.1\\Release\\Opus.lib")
#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_common.lib")
#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_fixed.lib")
#pragma comment(lib, "\\opus-1.0.1\\Release\\Silk_float.lib")
#endif
#endif
The reason I did this 'my way' is I must be able to compile *everything*
from source, also I prefer to do this anyway :)
Simon GD4ELI/HB9DRV
http://v2.sdr-radio.com/
-----Original Message-----
From: opus-bounces at xiph.org [mailto:opus-bounces at xiph.org] On Behalf Of
Hermann Weber
Sent: 09 May 2013 19:01
To: opus at xiph.org
Subject: [opus] Moving from Speex to Opus
Hello!
I have a solution in VS2010 in which I am using Speex 1.0.4.
I would now like to move to Opus.
In the old version I was using the following settings:
#include "speex.h"
"include dir": "..\..\speex-1.0.4\include"
"additional libraries: " "..\..\speex-1.0.4\lib"
Now with Opus it is a little more complicated, there are rather many
directories the file opus-1.0.1-rc3, and I am not sure which ones I should
choose.
Could anybody perhaps lend a helping hand??
Thank you.
Hermie.
_______________________________________________
opus mailing list
opus at xiph.org
http://lists.xiph.org/mailman/listinfo/opus
More information about the opus
mailing list