[Speex-dev] writing issues on arm build !

vinod vinod at speechdesk.com
Fri Apr 22 02:51:29 PDT 2005


 I have created this Speex C++ wrapper class. This may give yu some idea.

-----Original Message-----
From: speex-dev-bounces at xiph.org [mailto:speex-dev-bounces at xiph.org]On
Behalf Of Randy Toor
Sent: Friday, April 22, 2005 7:56 AM
To: speex-dev at xiph.org
Subject: [Speex-dev] writing issues on arm build !


Hi all.

I am a student writing a voip program on ppc for a project for school.
Before I explain my issue, let me apoligize for being extremely newbie :(

Here's the situation:
I am using the ARMV4 release build from the speex website. Right now I am
simply trying to make an encode function using speex that will take an
unsigned char* of raw wav data (8000 samples, 8 bits / sample, mono) and
encode it using speex, and have speex write it somewhere so I can do..
whatever with it.

Simple ? I thought it would be :P

The main issue I am having right now that is stopping me, is my program
execution will never get past speex_bits_write.. speex_encode works fine but
speex_bits_write blocks forever and my program simply hangs. If this is a
common issue please let me know and I'll be on my way :)

The only thing is, to be honest.. based on the documentation and the manual,
I can't seem to fully grasp what I need to set up to properly use speex
(maybe I'm too used to the nice javadocs :P ) Looking at the sample code
(sampleenc.c/sampledec.c) it looks very simple, but judging by the API
theres a lot of settings I can change. For the type of raw data I have (8000
samples, 8bps etc).. do I need to change settings within speex before I
begin encoding ? Not including turning on VAD and whatnot....

I guess a simpler question for me to ask, to build this simple function that
takes raw data and encodes it into speex, what steps to I need to take in
terms of converting my unsigned char* buffer to anything before passing it
into encode ? If someone can simply help me with that function (give me a
rough outline no code or anything :P ) I think I can get a better idea about
speex and figure out the rest myself .

Thank you very much to anyone who helps me i REALLY appreciate it!!!

_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
p://hotmail.com/enca&HL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.

_______________________________________________
Speex-dev mailing list
Speex-dev at xiph.org
http://lists.xiph.org/mailman/listinfo/speex-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SpeexWrapper.zip
Type: application/octet-stream
Size: 1400 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20050422/616ab894/SpeexWrapper.obj


More information about the Speex-dev mailing list