Displaying 20 results from an estimated 600 matches similar to: "[PATCH] bug in sample code sampledec.c"
2006 Aug 18
0
Please test upcoming release
Hi
I have tested speex from svn trunk r11792, here are my
findings:
* Builds ok for Symbian, with 1 warning (patch to fix this
this attached.) - not tested on hardware
* Builds ok for Ubuntu 6.06 (AMD64), although there are
some issues with 'make -j4' (try it). Runs fine on
AMD64 (64-bit mode), tested 8000Hz and 32000Hz
* Stereo encoding/decode goes at half the frequency, but
2006 Jun 12
1
[PATCH] warning: missing initializer for SPEEX_STEREO_STATE_INIT
hi
this code gives me a warning:
SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;
modules/speex/mod.c: In function 'alloc':
modules/speex/mod.c:61: warning: missing initializer
modules/speex/mod.c:61: warning: (near initialization for
'stereo_init.reserved1')
would it be possible to add this patch to you svn ?
Index: include/speex/speex_stereo.h
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 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,
> >
> >
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
2004 Aug 06
3
smapleenc.c and sampledec.c (from manual)
Hello,
I had tried to run smapleenc.c and sampledec.c
from the manual (don't confuse it with the encoder and decoter command line
utils ; the code ther is different).
the final decoded audio file is with a very poor quality audio
when using it with 16 bit PCM raw audio input .
Did anybody tried these samples with success ?
Or should I add something ?
regards
JOHN Z.
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:
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
2005 Jan 03
0
sampleenc/sampledec
I can't get the versions of sampleenc and sampledec in the manual to
work back-to-back. I've tried using speex 1.0.4 and 1.1.6. What am I
doing wrong?
[gerv@otter]$ file in.wav
in.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz
Strip headers:
[gerv@otter]$ sox in.wav in.raw
Command as given on manual page:
[gerv@otter]$ ./sampleenc in.raw | ./sampledec
2005 Aug 11
1
About sampleenc and sampledec in appendix B
<style> p {margin-top:0px;margin-bottom:0px;} </style>
<table border=0 width=100% bgcolor='' cellpadding=0 cellspacing=0 align=center>
        <tr>
        <td valign=top style='padding:8pt;'><font size=2>Hi! I excuted
2004 Sep 15
0
Problems with sampleenc and sampledec
I suspect I am missing something basic but I do not seem to be able to get the sampleenc and sampledec programs to work together. I suspect the decode operation is failing, but I cannot find out why.
Backgound information:
1) 1.0.4 tar package 'make' worked and installed on a mandrake 10.0 linux
2) speexenc and speexdec appear to work fine.
3) testenc and testenc_wb work fine, though
2005 Aug 10
0
About sampleenc and sampledec in appendix B
<style> p {margin-top:0px;margin-bottom:0px;} </style>
<table border=0 width=100% bgcolor='' cellpadding=0 cellspacing=0 align=center>
        <tr>
        <td valign=top style='padding:8pt;'><font
2007 Oct 11
2
Encode and decode using speex
Hi,
I am new to speex and I am trying to use the sample program given in the
speex document.
I have made some modification to that sample, so that input can be read from
a file and the output can be re-directed to the file.
I tried to encode an audio file using the sampleenc and decode the same by
sampledec.c I am able to do it successfully, but when i try to play the
output file from the
2004 Sep 13
0
Compile flags for sampleenc sampledec.
I suspect I am missing something basic but I do not seem to be able to get the sampleenc and sampledec programs to work together. I think I do not have a compile swtich of flag set correctly.
Backgound information:
1) 1.0.4 tar package 'make' worked and installed on a mandrake 10.0 linux
2) speexenc and speexdec appear to work fine.
3) testenc and testenc_wb work fine, though I
2005 Sep 06
1
speex-problem
Witam!
I have a question about speex. how to prepare wave file to use with
sample code that is on your site:
http://www.speex.org/manual2/node12.html .
If u can please answer me soon.
--
Pozdrawiam
Marcin Sliwa mailto:marcin_sl@wp.pl
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
2006 Oct 04
1
Decode win32 encoded files on TI C5x???
> For encoding into and decoding from "raw Speex stream" (if you can call
> it that), I suggest you start with the sampleenc.c and sampledec.c
> example code in Appendix B of the Speex Manual.
There is no such a thing as a "raw Speex format". Also, sampleenc.c and
sampledec.c are good for learning how to use the API, but the compressed
format shouldn't be used in
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
2006 Mar 14
1
Windows Mobile 5.0 SDK - SPEEX
Hello
I've looked into SPEEX SDK and source codes provided on site www.speex.org , and I'm trying to include in my Visual Studio 2005 - Visual C++ SmartDevice WM 5.0 the facilities provided by SPEEX (both encoding/decoding).I've downloaded the header files (i.e. Speex.h Speex_bits.h etc) and also the libspeex.lib.After creating my encoding/decoding functions following the