Displaying 9 results from an estimated 9 matches for "m_waveformatex".
2005 Jan 05
4
Encoding and decoding problem in speex 1.0.4
...ibrary from Windows.
I have posted my problem before but didn't get a solution. I am doing an
VOIP project
in which i am recording sound and streaming it to the peer. I wanted to
encode and decode
wav files that brought me to this site.
I am recording sound in the following format:-
m_WaveFormatEx.wFormatTag = WAVE_FORMAT_PCM;
m_WaveFormatEx.nChannels = 1;
m_WaveFormatEx.wBitsPerSample = 8;
m_WaveFormatEx.cbSize = 0;
m_WaveFormatEx.nSamplesPerSec = 8000;
m_WaveFormatEx.nBlockAlign = 1;
m_WaveFormatEx.nAvgBytesPerSec = 8000;...
2006 Nov 01
1
Integrating speex with VideoNet application: Constant background noise
...s speaking into the microphone.
#define FRAME_SIZE 160
The application is coded in MFC C++. The record buffer is set to be the same as the FRAME_SIZE such that my callback function is called everytime 160 bytes of data is recorded.
Here's what I did in the initialisation (called only once).
m_waveFormatEx.wFormatTag =WAVE_FORMAT_PCM;
m_waveFormatEx.nChannels =1;
m_waveFormatEx.wBitsPerSample =8;
m_waveFormatEx.cbSize =0;
m_waveFormatEx.nSamplesPerSec =
8000;
m_waveFormatEx.nBlockAlign =1;
m_waveFormatEx.nAvgBytesPerSec = 8000;
int quality =8;
speex_bits_init(&bits);
enc_state = speex_encoder_i...
2006 Nov 02
1
Integrating speex with VideoNet application: Constantbackground noise
...t>
To: carineliang@yahoo.com.sg; speex-dev@xiph.org
Sent: Thursday, 2 November 2006 2:04:39 PM
Subject: RE: [Speex-dev] Integrating speex with VideoNet application: Constantbackground noise
DIV {
MARGIN:0px;}
At
first glance it looks like you are opening the output device in 8-bit mode (m_waveFormatEx.wBitsPerSample
=8;). You will need to use 16-bit
mode if you expect to write an array of signed short integers to the audio
buffer. 8-bit PCM is an unsigned mode, no longer used much these
days.
Also,
a good debugging trick is to include something like this in your output sample
process...
2005 Jan 05
0
Encoding and decoding problem in speex 1.0.4
...am recording sound and streaming it to the peer. I wanted to
>encode and decode
> wav files that brought me to this site.
>
> I am recording sound in the following format:-
>
>
I don't know much about windows "Wave" stuff, but this doesn't look right:
> m_WaveFormatEx.wFormatTag = WAVE_FORMAT_PCM;
> m_WaveFormatEx.nChannels = 1;
> m_WaveFormatEx.wBitsPerSample = 8;
> m_WaveFormatEx.cbSize = 0;
> m_WaveFormatEx.nSamplesPerSec = 8000;
> m_WaveFormatEx.nBlockAlign = 1;
> m_WaveFormatEx.nAvgBy...
2006 Oct 30
0
Integrating speex with VideoNet application: Constant background noise
...s speaking into the microphone.
#define FRAME_SIZE 160
The application is coded in MFC C++. The record buffer is set to be the same as the FRAME_SIZE such that my callback function is called everytime 160 bytes of data is recorded.
Here's what I did in the initialisation (called only once).
m_waveFormatEx.wFormatTag =WAVE_FORMAT_PCM;
m_waveFormatEx.nChannels =1;
m_waveFormatEx.wBitsPerSample =8;
m_waveFormatEx.cbSize =0;
m_waveFormatEx.nSamplesPerSec = 8000;
m_waveFormatEx.nBlockAlign =1;
m_waveFormatEx.nAvgBytesPerSec = 8000;
int quality =8;
speex_bits_init(&bits);
enc_state = speex_encoder_in...
2006 Nov 05
1
Integrating speex with VideoNet application: Constantbackground noise
Hi,
I've changed the m_waveFormatEx.wBitsPerSample for both record buffer and playSound buffer, changed my array from char to short and I'm still getting the same constant background noise. I notice that when I talk into the mike, I will get a slightly louder noise, can't hear any clear speech... Any idea what's wrong?
R...
2006 Dec 24
1
Integrating speex with VideoNet application: Constantbackground noise
...arineliang@yahoo.com.sg; speex-dev@xiph.org
Sent: Thursday, 2 November
2006 2:04:39 PM
Subject: RE: [Speex-dev] Integrating speex with VideoNet
application: Constantbackground noise
DIV {
MARGIN:0px;}
At
first glance it looks like you are opening the output device in 8-bit mode
(m_waveFormatEx.wBitsPerSample =8;). You will need to use 16-bit mode if you expect to write
an array of signed short integers to the audio buffer.. 8-bit PCM
is an unsigned mode, no longer used much these
days.
Also, a good debugging trick is to include something like this in your
output sam...
2006 Nov 05
2
Integrating speex with VideoNet application: Constantbackground noise
...-----Original Message-----
From: Carine Liang
[mailto:carineliang@yahoo.com.sg]
Sent: Sunday, November 05, 2006
4:51 PM
To: John Miles; speex-dev@xiph.org
Subject: Re:
[Speex-dev] Integrating speex with VideoNet application: Constantbackground
noise
Hi,
I've
changed the m_waveFormatEx.wBitsPerSample for both record buffer and playSound
buffer, changed my array from char to short and I'm still getting the same
constant background noise. I notice that when I talk into the mike, I will get
a slightly louder noise, can't hear any clear speech... Any idea what's...
2006 Nov 05
0
Integrating speex with VideoNet application: Constantbackground noise
...---Original Message-----
From: Carine Liang [mailto:carineliang@yahoo.com.sg]
Sent: Sunday, November 05, 2006 4:51 PM
To: John Miles; speex-dev@xiph.org
Subject: Re: [Speex-dev] Integrating speex with VideoNet application:
Constantbackground noise
Hi,
I've changed the m_waveFormatEx.wBitsPerSample for both record buffer
and playSound buffer, changed my array from char to short and I'm still
getting the same constant background noise. I notice that when I talk into
the mike, I will get a slightly louder noise, can't hear any clear speech...
Any idea what's wrong?...