Displaying 20 results from an estimated 23 matches for "inbuff".
Did you mean:
inbuf
2004 Aug 06
2
Please 30 second to look a my code
...s CE 3.0).
Libspeex is complied with the definition of FIXED_POINT...
Regards
Fabio
P.S.
Rodrigo did u do something similar?
This is the code, what could be wrong?
void CRegistratoreDlg::OnEncode()
{
Sleep(500); //Wait because drawing send window
SpeexBits bits;
void *state;
short InBuffer[FRAME_SIZE];
char OutBuffer[200];
char waveheader[WAVEHEADER];
HANDLE WaveFile;
HANDLE SpeexFile;
DWORD NrOfBytesRead, NrOfBytesWritten;
char nrBytes = 0;
int nbBytes = 0;
int bit_rate, frame_size, test=0;
bool first=true;
WaveFile = CreateFile(_T("\\Temp\\tempsou...
2010 Apr 13
1
Another newbie question on encoding
...ss CSpeexCodec
{
public:
enum ESpeexCodecType
{
SC_ENCODER,
SC_DECODER
};
enum ESpeexCodecMode
{
SC_NARROWBAND, // 8 kHz
SC_WIDEBAND, // 16 kHz
SC_ULTRAWIDEBAND // 32 kHz
};
CSpeexCodec();
~CSpeexCodec();
BOOL Init();
UINT Encode( sample_type *inBuff, char **outBuff, UINT BufferFrames );
private:
SpeexBits spx_bits_;
void* spx_state_;
UINT spx_quality_;
UINT frameSize_;
char* outBuffer_;
};
BOOL CSpeexCodec::Init()
{
spx_state_ = speex_encoder_init(&speex_nb_mode);
speex_encod...
2019 Nov 06
0
【SPEEX】 use speex resample make noise
...> SpeexResamplerState *speex_resampler;
> speex_resampler = speex_resampler_init(1, 16000, 48000, 10, &err);
> FILE *fp = fopen("/data/zhou.wav", "rb+");
> FILE *fp2 = fopen("/data/zhou2.wav", "ab+");
> spx_int16_t inbuff[640] = {0};
> spx_int16_t outbuff[1920] = {0};
> spx_uint32_t inlen = 640;
> spx_uint32_t outlen = 1920;
> while (1)
> {
> speex_resampler_reset_mem(speex_resampler);
> int len = fread(inbuff, 2, 320, fp);
> if (len <= 0...
2004 Aug 06
0
Please 30 second to look a my code
...ds
> Fabio
>
> P.S.
> Rodrigo did u do something similar?
>
> This is the code, what could be wrong?
> void CRegistratoreDlg::OnEncode()
> {
> Sleep(500); //Wait because drawing send window
>
> SpeexBits bits;
>
> void *state;
>
> short InBuffer[FRAME_SIZE];
> char OutBuffer[200];
> char waveheader[WAVEHEADER];
>
> HANDLE WaveFile;
> HANDLE SpeexFile;
>
> DWORD NrOfBytesRead, NrOfBytesWritten;
>
> char nrBytes = 0;
> int nbBytes = 0;
> int bit_rate, frame_size, test=0;
> bool fi...
2007 Nov 14
0
Audio glitches/Configuration problem !!?
...IP following
the documentation and sample code's.
I am facing audio glitches when encoding - decoding PCM data. The encoder
and decoder procedures are copied below.
What about the lookahead size ? how shouw we apply it in encoding stage ?
thanks in advance
bool SpeexEncoder::EncodeData(char * inBuffer, int inSize, char * outBuffer,
int outMAXSize, int* outSize)
{
if(!m_Initialized) return false;
// Copy data into the local buffer
memcpy(m_pBuffer + m_BufferSize, inBuffer, inSize);
m_BufferSize += inSize;
// check if we have enougth data for the encoder,
if(m_BufferSiz...
2010 Apr 14
3
Decoded output buffer size
...and mode, this
> corresponds to a buffer size of 160 samples.
Hi Randy, thanks for the reply.
So, suppose I encode an audio buffer (8000 kHz, MONO, float) of 640 PCM
frames.
In output I have 4 speex frame of 20 byte each that I put in a RPT
payload of 80 bytes:
UINT CSpeexCodec::Encode( float *inBuff,
const char**outBuff,
UINT BufferFrames )
{
speex_encoder_ctl(spx_state_,
SPEEX_GET_FRAME_SIZE,
&spx_frame_size_);
while (BufferFrames>0)
{
speex_bits_reset(&spx_bits_);
speex_encod...
2007 Nov 04
3
WaveIn/WaveOut and Speex
...The end-result is very distorted sound.
I use the following PCM format:
waveFormat.nChannels = 1;
waveFormat.nSamplesPerSec = 8000;
waveFormat.wBitsPerSample = 8;
Once sound is aquired by the mic, I send it to Speex in a Char buffer.
It looks something like this:
Encode(char* inBuffer, DWORD bufferLength)
...
float* input = new float[frameSize];
ZeroMemory(input, frameSize);
...
for( )
{
input[..] = inBuffer[..];
}
...
speex_encode(enc_state, input, &bits);
int bytesWritten = speex_bits_nbytes(&bits);
speex_bits_write(&bits, encBuffer, bytesWritten);...
2019 Nov 05
0
【SPEEX】 use speex resample make noise
...amplerState *speex_resampler;
> int err;
> speex_resampler = speex_resampler_init(1, 16000, 48000, 10, &err);
> FILE *fp = fopen("/data/zhou.wav", "rb+");
> FILE *fp2 = fopen("/data/zhou2.wav", "ab+");
> spx_int16_t inbuff[640] = {0};
> spx_int16_t outbuff[1920] = {0};
> spx_uint32_t inlen = 640;
> spx_uint32_t outlen = 1920;
> speex_resampler_skip_zeros(speex_resampler);
> while (1)
> {
> int len = fread(inbuff, 2, 320, fp);
> if (len <= 0)
&...
2000 Apr 16
0
Trying to get cmdline going...
...and found a few thinkos to fix, but some of the more
esoteric getopt() things are stumping me.
Ferinstance, it seems that
< device=strdup(optarg);
ought to be
> device=optarg;
and
< if((ret=CheckWav(infile,bufferfill,&intype))){
probably should be
> if((ret=CheckWav(inbuffer,bufferfill,&intype))){
and I've faked up a fill_buffer routine:
> int fill_buffer(FILE *infile, char *inbuffer, int bufferfill, int
insize)
> {
> return fread(inbuffer, sizeof(char), insize, infile);
> }
but, the logic for getting the filenames seems broke:
if(optind&g...
2007 Nov 04
2
WaveIn/WaveOut and Speex
...>
>
> waveFormat.nChannels = 1;
>
> waveFormat.nSamplesPerSec = 8000;
>
> waveFormat.wBitsPerSample = 8;
>
>
>
> Once sound is aquired by the mic, I send it to Speex in a Char buffer.
> It looks something like this:
>
>
>
> Encode(char* inBuffer, DWORD bufferLength)
>
> ...
>
> float* input = new float[frameSize];
>
> ZeroMemory(input, frameSize);
>
> ...
>
> for( )
>
> {
>
> input[..] = inBuffer[..];
>
> }
>
> ...
>
> speex_encode(enc_state, input, &bits);
>...
2004 Sep 10
2
Error initializing flac stream decoder.
I've cross-compiled flac for the armv4l processor (rio receiver), and
i'm trying to start up a decode thread :
#include <FLAC/stream_decoder.h>
....
FLAC__StreamDecoder *flac = NULL;
flac = FLAC__stream_decoder_new();
if (flac == NULL) {
printf("[DECODE] Unable to initalize flac object\n");
2004 Sep 10
2
Error initializing flac stream decoder.
...atus rio_flac_read(const FLAC__StreamDecoder
*decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) {
r_glue *g = (r_glue*) client_data;
unsigned int bytesAvailable = rio_ringbuffer_datasize(
g->readAhead );
unsigned int bytesToCopy = 0;
char* inBuffer;
if (g->decode_request == DECODE_STOP)
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
if (g->eof && bytesAvailable == 0)
return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
g->decode_status = DECODE_RUN
by...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...>
>
> waveFormat.nChannels = 1;
>
> waveFormat.nSamplesPerSec = 8000;
>
> waveFormat.wBitsPerSample = 8;
>
>
>
> Once sound is aquired by the mic, I send it to Speex in a Char buffer.
> It looks something like this:
>
>
>
> Encode(char* inBuffer, DWORD bufferLength)
>
> ...
>
> float* input = new float[frameSize];
>
> ZeroMemory(input, frameSize);
>
> ...
>
> for( )
>
> {
>
> input[..] = inBuffer[..];
>
> }
>
> ...
>
> speex_encode(enc_state, input, &bits);
>...
2010 Apr 14
2
Decoded output buffer size
Hi,
in a VoIP application, the endpoint A send speex payload to B.
B doesn't know how A acquire audio, it only know that the channel is
narrowband so, how can B know the size of the output buffer to pass to
the speex_decode()?
Thanks,
Daniele.
2010 Apr 14
0
Decoded output buffer size
...uffer size of 160 samples.
>
> Hi Randy, thanks for the reply.
> So, suppose I encode an audio buffer (8000 kHz, MONO, float) of 640 PCM
> frames.
> In output I have 4 speex frame of 20 byte each that I put in a RPT
> payload of 80 bytes:
>
> UINT CSpeexCodec::Encode( float *inBuff,
> ? ? ? ? ? ? ? ? ? ? ? ? ?const char**outBuff,
> ? ? ? ? ? ? ? ? ? ? ? ? ?UINT BufferFrames )
> {
> ?speex_encoder_ctl(spx_state_,
> ? ? ? ? ? ? ? ? ? ?SPEEX_GET_FRAME_SIZE,
> ? ? ? ? ? ? ? ? ? ?&spx_frame_size_);
>
> ?while (BufferFrames>0)
> ?{
> ? ?speex_bi...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...>
>> waveFormat.nSamplesPerSec = 8000;
>>
>> waveFormat.wBitsPerSample = 8;
>>
>>
>>
>> Once sound is aquired by the mic, I send it to Speex in a Char
>> buffer. It looks something like this:
>>
>>
>>
>> Encode(char* inBuffer, DWORD bufferLength)
>>
>> ...
>>
>> float* input = new float[frameSize];
>>
>> ZeroMemory(input, frameSize);
>>
>> ...
>>
>> for( )
>>
>> {
>>
>> input[..] = inBuffer[..];
>>
>> }
>>...
2007 Nov 05
0
Fw: RE: WaveIn/WaveOut and Speex
...>
>> waveFormat.nSamplesPerSec = 8000;
>>
>> waveFormat.wBitsPerSample = 8;
>>
>>
>>
>> Once sound is aquired by the mic, I send it to Speex in a Char
>> buffer. It looks something like this:
>>
>>
>>
>> Encode(char* inBuffer, DWORD bufferLength)
>>
>> ...
>>
>> float* input = new float[frameSize];
>>
>> ZeroMemory(input, frameSize);
>>
>> ...
>>
>> for( )
>>
>> {
>>
>> input[..] = inBuffer[..];
>>
>> }
>>...
2007 Nov 05
2
WaveIn/WaveOut and Speex
...>
>> waveFormat.nSamplesPerSec = 8000;
>>
>> waveFormat.wBitsPerSample = 8;
>>
>>
>>
>> Once sound is aquired by the mic, I send it to Speex in a Char
>> buffer. It looks something like this:
>>
>>
>>
>> Encode(char* inBuffer, DWORD bufferLength)
>>
>> ...
>>
>> float* input = new float[frameSize];
>>
>> ZeroMemory(input, frameSize);
>>
>> ...
>>
>> for( )
>>
>> {
>>
>> input[..] = inBuffer[..];
>>
>> }
>>...
2000 May 15
1
Re: [vorbis-dev] Semi-off-topic ramblings
[cc'd to vorbis and gstreamer-devel because I thought both lists would
like to see this ]
> I'm curious if anyone else is at all fed up with the current
> state-of-affairs of media support under *IX. As things stand it's rather
[...]
Hi,
Caught your post on vorbis-dev, but I'm not on vorbis, where Monty
suggested this go, so email me directly with any replies.
2009 May 20
1
Re: read/write multiplexed support
...e F., are you listening? And, do you remember those
> details? :-)
>
> Volker
>
Volker,
i remember our irc talk:
http://samba.sernet.de/irclog/2007/08/20070826-Sun.log
08/26/07 14:46:20 <vl> hi kukks
08/26/07 14:46:58 <vl> kukks: With all the changes I've done to InBuffer/OutBuffer in Samba 3.2, I would be grateful if you could give it a test run with OS/2.
08/26/07 14:49:52 <kukks> vl: Hi Volker. Well, I'll test that during the next days. Will give you feedback about the results.
08/26/07 14:50:49 <vl> great!
08/26/07 14:58:47 <kukks> vl: bt...