Displaying 9 results from an estimated 9 matches for "wm_playsound_playblock".
2004 Aug 06
1
C++ wrapper for speex
...pSpeexHdr->lpData = (char*)pSound;
pSpeexHdr->dwBufferLength = lpHdr->dwBufferLength;
pSpeexHdr->dwFlags = 0L;
pSpeexHdr->dwLoops = 0L;
m_Player->PostThreadMessage(WM_PLAYSOUND_PLAYBLOCK,
GetCurrentThreadId(),(LPARAM) lpHdr);
}
}
this handler would simply capture the voice data and
immidiately play it as it is, and as far as that is
concern, it is working.
my speex case study is simple. i just want to encode
the raw data recieved by the handler and immidiately
decode...
2004 Aug 06
0
C++ wrapper for speex
...memcpy(pSound,lpHdr->lpData,lpHdr->dwBufferLength);
>
> pSpeexHdr->lpData = (char*)pSound;
> pSpeexHdr->dwBufferLength = lpHdr->dwBufferLength;
> pSpeexHdr->dwFlags = 0L;
> pSpeexHdr->dwLoops = 0L;
>
> m_Player->PostThreadMessage(WM_PLAYSOUND_PLAYBLOCK,
> GetCurrentThreadId(),(LPARAM) lpHdr);
> }
> }
>
> this handler would simply capture the voice data and
> immidiately play it as it is, and as far as that is
> concern, it is working.
>
> my speex case study is simple. i just want to encode
> the raw data rec...
2006 Nov 01
1
Integrating speex with VideoNet application: Constant background noise
...the data in cbits (char array).
{
speex_bits_read_from(&bits, cbits, retvalue); //retvalue is 38
speex_decode(dec_state, &bits, output); //where output is float array
for(int k=0;k<FRAME_SIZE;k++)
out[k] = output[k]; //out is a char array
PostThreadMessage( WM_PLAYSOUND_PLAYBLOCK, FRAME_SIZE, (LPARAM)out );
}
What is the internet to you?
Contribute to the Yahoo! Time Capsule and be a part of internet history._______________________________________________
Speex-dev mailing list
Speex-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/speex-dev...
2004 Aug 06
2
C++ wrapper for speex
...= new WAVEHDR;
pSpeexHdr->lpData = (char*)pSound;
pSpeexHdr->dwBufferLength = decodedSamples *
sizeof(short);
pSpeexHdr->dwFlags = 0L;
pSpeexHdr->dwLoops = 0L;
// output audio to speaker
m_Player->PostThreadMessage(WM_PLAYSOUND_PLAYBLOCK,
GetCurrentThreadId(),(LPARAM) pSpeexHdr);
// clean up
// delete pSeexHdr;
// delete [] pSound;
return 1;
}
this produces unintelligible audio. may be you can
give me an opinion on how i can properly reconstruct
my PCM sample ( into WAVHDR) after the decod...
2006 Nov 02
1
Integrating speex with VideoNet application: Constantbackground noise
...s (char
array).
{
speex_bits_read_from(&bits, cbits,
retvalue); //retvalue is 38
speex_decode(dec_state,
&bits, output); //where output is float array
for(int k=0;k<FRAME_SIZE;k++)
out[k] =
output[k]; //out is a char array
PostThreadMessage( WM_PLAYSOUND_PLAYBLOCK, FRAME_SIZE, (LPARAM)out
);
}
What is the internet to you?
Contribute to the Yahoo! Time Capsule and be a part of internet
history.
_______________________________________________
Speex-dev mailing
list
Speex-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/speex-dev...
2006 Oct 30
0
Integrating speex with VideoNet application: Constant background noise
...the data in cbits (char array).
{
speex_bits_read_from(&bits, cbits, retvalue); //retvalue is 38
speex_decode(dec_state, &bits, output); //where output is float array
for(int k=0;k<FRAME_SIZE;k++)
out[k] = output[k]; //out is a char array
PostThreadMessage( WM_PLAYSOUND_PLAYBLOCK, FRAME_SIZE, (LPARAM)out );
}
__________________________________
What will the world find in 2020?
Leave a part of your 2006 in the Yahoo! Time Capsule. Contribute now!
http://timecapsule.yahoo.com/capsule.php?intl=sg
-------------- next part --------------
An HTML attachment was scrub...
2004 Aug 06
1
C++ wrapper for speex
...SpeexHdr = new WAVEHDR;
> pSpeexHdr->lpData = (char*)pSound;
> pSpeexHdr->dwBufferLength = decodedSamples *
> sizeof(short);
> pSpeexHdr->dwFlags = 0L;
> pSpeexHdr->dwLoops = 0L;
>
> // output audio to speaker
> m_Player->PostThreadMessage(WM_PLAYSOUND_PLAYBLOCK,
> GetCurrentThreadId(),(LPARAM) pSpeexHdr);
>
> // clean up
> // delete pSeexHdr;
> // delete [] pSound;
>
> return 1;
> }
>
> this produces unintelligible audio. may be you can
> give me an opinion on how i can properly reconstruct
> my PCM sample ( int...
2006 Nov 05
1
Integrating speex with VideoNet application: Constantbackground noise
...array).
{
speex_bits_read_from(&bits, cbits,
retvalue); //retvalue is 38
speex_decode(dec_state,
&bits, output); //where output is float array
for(int k=0;k<FRAME_SIZE;k++)
out[k] =
output[k]; //out is a char array
PostThreadMessage( WM_PLAYSOUND_PLAYBLOCK, FRAME_SIZE,
(LPARAM)out );
}
What is the internet to you?
Contribute to the Yahoo! Time Capsule and be a part of internet
history.
_______________________________________________
Speex-dev mailing
list
Speex-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/sp...
2006 Dec 24
1
Integrating speex with VideoNet application: Constantbackground noise
...array).
{
speex_bits_read_from(&bits, cbits,
retvalue); //retvalue is 38
speex_decode(dec_state,
&bits, output); //where output is float array
for(int k=0;k<FRAME_SIZE;k++)
out[k] =
output[k]; //out is a char array
PostThreadMessage( WM_PLAYSOUND_PLAYBLOCK, FRAME_SIZE,
(LPARAM)out );
}
What is the internet to you?
Contribute to the Yahoo! Time Capsule and be a part of internet
history.
_______________________________________________
Speex-dev mailing
list
Speex-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/sp...