Displaying 20 results from an estimated 60000 matches similar to: "Bug in docs & sample code"
2006 Jun 10
1
[PATCH] bug in sample code sampledec.c
Hi
there is a small bug in the sample code 'sampledec.c' here:
http://www.speex.org/manual2/node12.html#SECTION000121000000000000000
it is trying to destroy the encoder of the "decoder" state, this
patch should fix it:
Index: doc/sampledec.c
===================================================================
--- doc/sampledec.c (revision 11555)
+++ doc/sampledec.c
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
Hi,
The manual 1.1.6 of sampledec.c says that
/*Destroy the decoder state*/
speex_encoder_destroy(state);
Should it be be
/*Destroy the decoder state*/
speex_decoder_destroy(state);
instead?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20050221/c460253b/attachment.html
2005 Feb 21
2
1.1.6 Manual sampledec.c mistake
Le lundi 21 f?vrier 2005 ? 15:08 +0100, Claude Brisson a ?crit :
> Why not move the manual on the wiki ?
Because it's already written in LyX and can be easily converted to pdf,
html or anything. However, the trouble shooting part could be on a wiki.
Do you volunteer?
Jean-Marc
> Claude
>
> On Mon, 2005-02-21 at 21:35 +0800, James Oh wrote:
> > Hi,
> >
> >
2008 Nov 14
0
decoded sample is completely differen from original one
Hi,
Please start with sampleenc.c/sampledec.c from the manual.
Jean-Marc
Andre Kirchner a ?crit :
> Hi all,
>
> I have just started playing with speex, and come up with the following code, which just encode a frame of 160 shorts, and the decode it.
>
> For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a
2007 Apr 02
1
Problems with stereo data
Hi all,
I have a problem when I am encoding (or decoding) stereo audio.
With mono data, things are fine and everything works without any problems.
When I try to decode stereo data, all I get is a static sound - similar to that of a radio not tuned to any specific station. I wonder what might be wrong?
Below is the code, first, of the encoder and next that of the decoder. Any information or
2008 Nov 13
2
decoded sample is completely differen from original one
Hi all,
I have just started playing with speex, and come up with the following code, which just encode a frame of 160 shorts, and the decode it.
For some reason the decoded sample is completely different than the original one. is my code wrong? If so what? Or is it a reasonable which depends of values that weren't correctly set?
Thanks,
Andre
#include <stdio.h>
#include
2005 Oct 17
0
Error Executing sampledec in VC++
You should really do a check to make sure
nbBytes isn't larger than 200, otherwise you're going to read past the end
of your char array.
fread (&nbBytes, sizeof(int), 1, fo);
_____
From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On
Behalf Of Mo Win
Sent: Monday, October 17, 2005 7:31 PM
To: speex-dev@xiph.org
Subject: Re: [Speex-dev] Error
2004 Aug 06
0
About sample code
I write a sample code like speex provide , as follows:
SpeeXCodec::SpeeXCodec()
{
rate = 8000;
speex_bits_init(&enbits);
speex_bits_init(&debits);
enc_state = speex_encoder_init(&speex_nb_mode);
dec_state = speex_decoder_init(&speex_nb_mode);
// set option for encoder
speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size);
speex_encoder_ctl(enc_state,
2005 Oct 17
0
Error Executing sampledec in VC++
Mon,
Here is feedback that I got concerning the access violation, i.e. the failure of the while loop below. Does this solve the problem?
Steve
My guess is that speex_decoder_init() should be outside the while().. loop
as speex_decoder_destroy() is also outside.
----- Original Message -----
From: Mo Win
To: speex-dev@xiph.org
Sent: Monday, October 17, 2005 8:05 AM
Subject:
2007 Feb 13
0
Hello guys Please help
Why my decoder doesn't want to return the data back to its original wav audio file that i can playback it correctly , is there something wrong in my code .
Encoder :
=======
#include "speex.h"
#include <stdio.h>
#include <iostream>
#include <conio.h>
using namespace std;
/*The frame size in hardcoded for this sample code but it doesn't have to be*/
2005 Dec 06
1
problems decoding speex... please help
Hi all. I'm trying to decode speex using version 1.1.10's libspeex with
fixed_point enabled. copied the sample in the manual (1.1.11) with minor
revisions. While running the program, encountered this warning:
"Packet is larger than allocated buffer : 38"
when calling speex_bits_read_from (&bits, cbits, nBytes)
then my program terminated unexpectedly with errors (Unhandled
2007 Feb 13
1
Hello Guys
hello everybody in this great mailing list , i have some difficulties to follow my code .
i solved some problems thanks to Carine Liang , but i still have one problem and i think it is fatal one.
when i encode the voice data in a wav file it is decoded without any errors it gives me 84 bytes wav file size for 139 kbytes wav audio data .Naturally i wanted to return my file back to its normal
2005 Sep 03
2
Library export file for Win32 (patch)
This patch will export new speex functions in the generated library, such
as speex_encode_int as well as the preprocessor, echo-cancellation and
jitterbuffers. The ordinals used matches the 1.1.6 release from the
speex.org website, so any new library created with this def file should be
binary compatible with that one.
-------------- next part --------------
Index: speex.def
2005 Oct 17
3
Error Executing sampledec in VC++
hey guys, I just compiled an application similar to sampledec.c (for speex
1.1.10) and it was fine but when I executed it, the app exited without doing
anything. I'm using MS VC 6.0 and this was all I got - First-chance
exception in sampledec.exe : 0xC0000005: Access Violation. Has anyone
encountered this / does anyone know how to deal with it? by the way,
sampleenc executed perfectly...
When
2005 Oct 17
6
Error Executing sampledec in VC++
Hi Steve, thanks for the advice. I placed the appropriate functions outside
the while statement but I still get this error at the while loop:
First-chance exception at 0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
Unhandled exception at 0x004010fa in SPXDEC.exe: 0xC0000005: Access
violation reading location 0x0000000c.
It looks like the same error. I've
2007 Jun 01
1
help on Blackfin
hello,
i try to add a speex compression on the TDM Talkthrough on the BF-533 EZ-KIT
LITE but when i compile i obtain the following errors:
[Error li1021] The following symbols referenced in processor 'p0' could not
be resolved:
'speex_bits_destroy [_speex_bits_destroy]' referenced from
'Debug\Process_data.doj'
'speex_bits_init [_speex_bits_init]' referenced from
2005 Feb 22
1
Win CE playback error
Hi,
I have a module sampling raw PCM data on Win CE as 10ms time slice (160 bytes), mono, 8000HZ, 16 bits per sample.
Does anyone know what is the mflops for using fixed point on a Win CE compared to using floating point?
Looking at the manual,
"In practice, frame_size will correspond to 20 ms when using 8, 16, or 32 kHz sampling
rate."
for a 8 kHz sampling, the framesize should be
2004 Aug 06
0
Please 30 second to look a my code
Well, you seem to be using FRAME_SIZE but only defining frame_size.
Otherwise, the code looks OK, but it's always hard to tell. I suggest
you start from speexenc/speexdec or from the example I wrote in the
manual at: http://www.speex.org/manual/node12.html
Jean-Marc
Le ven 19/12/2003 à 05:22, Fabio a écrit :
> Hi
> i'm developing a sort of VoIP application
> for my
2007 Aug 06
2
Attempting to shrink speex: Are these functions necessary?
Hi,
I am using speex 1.2beta2 on a narrowband 16-bit, 8khz system that has
a severe program space problem and will not fit speex in its normal
operation. In an attempt to shrink speex I placed a breakpoint in every
function and ran a decode and encode and removed the breakpoints that I
hit. in the functions that had a breakpoint that I didn't hit I
commented out those functions (as well as
2006 Oct 12
1
Problem with encoding and decoding
I have problem with coding and decoding. I record voice from mic coding
and write to file.
And when I read from file and put it on sound card it's terrible sound.
Have sameone can help me?
#include <speex.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
/*The frame size in hardcoded for this sample code but it