search for: wavehdr

Displaying 17 results from an estimated 17 matches for "wavehdr".

2004 Aug 06
2
C++ wrapper for speex
...y're really what i'm looking for! i really cannot worry about container support at the moment because i'm working with real-time audio, and hopefully toward VoIP when everything else is in order. im using waveform to capture data from the microphone. the raw PCM sample is stored in the WAVEHDR structure's member lpData, and this variable is of LPSTR type. if you have the time, can you please check on my test code below and see where i could be having problems with. (this is the handler that processes captured audio) LRESULT CRecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) {...
2010 Aug 01
0
Wargame Problems - Black screen.
...win:EnumDisplayDevicesW ((null),0,0xe6f48c,0x00000000), stub! > fixme:d3d8:ValidateVertexShader (0x18dfc28 (nil) (nil) 1 0xe6f484): stub > fixme:d3d:state_zvisible WINED3DRS_ZVISIBLE not implemented. When a scenario is loading I get: Code: err:wave:wodPlayer_WriteMaxFrags Error in writing wavehdr. Reason: Resource temporarily unavailable err:wave:wodPlayer_WriteMaxFrags Error in writing wavehdr. Reason: Resource temporarily unavailable err:wave:wodPlayer_WriteMaxFrags Error in writing wavehdr. Reason: Resource temporarily unavailable err:alsa:wine_snd_pcm_recover underrun occurred fixme:d3d...
2004 Aug 06
1
C++ wrapper for speex
...ooking for! i really cannot worry about > container support at the moment because i'm working > with real-time audio, and hopefully toward VoIP when > everything else is in order. > > im using waveform to capture data from the microphone. > the raw PCM sample is stored in the WAVEHDR > structure's member lpData, and this variable is of > LPSTR type. > > if you have the time, can you please check on my test > code below and see where i could be having problems > with. (this is the handler that processes captured > audio) > > LRESULT CRecordSound:...
2012 Oct 25
2
WAVE PCM to OPUS and back
...2; waveform.wBitsPerSample = 8; waveform.nSamplesPerSec = 48000; waveform.nBlockAlign = waveform.nChannels * (waveform.wBitsPerSample >> 3); waveform.nAvgBytesPerSec = waveform.nSamplesPerSec * waveform.nBlockAlign; #define BUFSIZE 512 ... case MM_WIM_DATA: { WAVEHDR *Hdr = (WAVEHDR *) msg.lParam; int opusRes; m_opusEncoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &opusRes); m_opusDecoder = opus_decoder_create(48000, 2, &opusRes); unsigned char data[BUFSIZE];...
2009 Jan 20
0
VoIP with wavefrom and speex
...high traffic, so I desided to use speex for compressing the data. I'm recording with mono, 16bit/sample, 8000 samples per second. I tried to add the speex compression, but I always get a crash when I try to decode the data. Here is my encode and decode function: int audio_encode(char dest[],WAVEHDR *source,int srclen, int quality) { SpeexBits bits; void *enc_state; float input[160]; char output[200]; unsigned int i,n=0; int compr_length = 0; unsigned short length; speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_nb_mode); speex_encoder_ctl(enc_state,SPEEX_SET_Q...
2004 Aug 06
1
C++ wrapper for speex
...ne it and i supposed i could do it also, but i'm really confused now with all my failed attempts.) i'm particularly interested with real-time audio and i have an event handler that captures audio samples like the ff: void CRecordSound::OnSoundData(WPARAM wParam, LPARAM lParam) { LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; if(lpHdr) { WAVEHDR* pSpeexHdr = new WAVEHDR; BYTE * pSound = new BYTE[lpHdr->dwBufferLength]; memcpy(pSound,lpHdr->lpData,lpHdr->dwBufferLength);...
2004 Aug 06
0
C++ wrapper for speex
...t i'm really confused now with all my failed > attempts.) > > i'm particularly interested with real-time audio and i > have an event handler that captures audio samples like > the ff: > > void CRecordSound::OnSoundData(WPARAM wParam, LPARAM > lParam) > { > LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; > > if(lpHdr) > { > WAVEHDR* pSpeexHdr = new WAVEHDR; > > BYTE * pSound = new BYTE[lpHdr->dwBufferLength]; > memcpy(pSound,lpHdr->lpData,lpHdr->dwBufferLength); > > pSpeexHdr->lpData = (char*)pSound;...
2004 Feb 03
1
starcraft problem
Hi all, i have just finished my installation of wine as normal user (see below). Notepad is running fine, so i decided to run something more fun, starcraft. The installation program works, even with sound and all, exept when i decide to run the previews. The previews run rine, but whithout sound. When i return to the installation program the sound is gone. But anyway, it does it's yob,
2007 Nov 04
3
WaveIn/WaveOut and Speex
Hello, I know my question has been asked before because I spent the last week searching the web for how to use Speex in combination with WaveIn/WaveOut and I ran into a few posts, but none of them answer the question. There is still a lot of confusion how to use WaveIn/WaveOut and Speex by junior developers such as myself. Even after examining code for SpeexDec and SpeexEnc, I cannot get clear
2005 Jan 05
4
Encoding and decoding problem in speex 1.0.4
...= 0; m_WaveFormatEx.nSamplesPerSec = 8000; m_WaveFormatEx.nBlockAlign = 1; m_WaveFormatEx.nAvgBytesPerSec = 8000; The recording is as follows :- When the buffer(size = 2000 bytes) gets filled with sound data a function with the body shown below is called. LPWAVEHDR lpHdr = (LPWAVEHDR) lParam; if(lpHdr->dwBytesRecorded==0 || lpHdr==NULL) return ERROR_SUCCESS; ::waveInUnprepareHeader(m_hRecord, lpHdr, sizeof(WAVEHDR)); Here lpHdr->lpData contains the audio data in a character array. Now here I want to use Speex codec for encoding the data so...
2007 Dec 06
1
Echo cancellor on Windows, a few questions.
...speex. as the mic and the speakers are built into the laptop, an echo canceller is required. what i am doing is this : First, each time i finish writing a block to the waveout, i copy it into a buffer like this: Segment *pseg = (Segment *)phead; waveOutUnprepareHeader(waveOut, phead, sizeof(WAVEHDR)); memcpy(remote, pseg->samples, 160 * sizeof(short)); Second, each time i get samples from the mic, i do the echo cancellation like this: if (nsamples == 160){ speex_echo_cancellation(echo_state, (short *)pseg->samples, remote, unechoed); q = unechoed; } I have also initialize...
2007 Nov 04
2
WaveIn/WaveOut and Speex
Thank you for such a quick response. The only reason I started with Char buffers is because WaveIn and WaveOut on Windows XP accept/emit WAVEHDR structures, which store audio data in LPSTR, which is Char*. typedef struct { LPSTR lpData; DWORD dwBufferLength; ... } WAVEHDR; When I was going from Char to float and back looked very wrong to me as well, but I was just not sure (and still am) how to translate the Char*...
2007 Dec 04
2
[PATCH] Add Visual Studio 2008 Prject files
On Dec 3, 2007 1:24 PM, Stefan Reuther <streu@gmx.de> wrote: > John Miles wrote: > > What's wrong with a plain old .bat file, or even an NMAKE .mak file? > > Ship two files, debug.bat and release.bat, and call it good. > > > > It is best to leave project-file creation up to individual users, > > in my opinion. > > I second that. When I played around
2007 Jun 29
0
Wine release 0.9.40
...bare content for data messages opened to encode. crypt32: Implement getting content for data messages opened to encode. Kai Blin (1): ws2_32: Return WSAEINVAL for unhandled address families in WSAStringToAddress. Ken Thomases (4): winecoreaudio: Extract loop, wodNotifyClient for WAVEHDRs in list, to separate function. winecoreaudio: Move a variable declaration to narrower scope, reduce whitespace. winecoreaudio: Move notify of completed WAVEHDRs to end of wodReset. winecoreaudio: Make wodReset fail if called on a closed device. Kirill K. Smirnov (1): winhe...
2010 Mar 05
0
Wine release 1.1.40
...etNearestColor with changes to test to reflect fixes. gdiplus/test: Add GdipSetImageAttributesRemapTable test and fix typo. gdiplus: Implement GdipSetImageAttributesRemapTable with updated test. J?rg H?hle (11): user32: Sync vkey codes with winuser.h. wineoss: Do not access WAVEHDR past DriverCallback. winealsa: Do not access WAVEHDR past DriverCallback. midimap: Have GetDevCaps error out when no MIDI device is present. winmm: Do not access MIDIHDR past MOM_DONE DriverCallback. winmm: MIDIHDR.dwOffset is set with MEVT_F_CALLBACK only. winmm: Acce...
2013 Mar 01
0
Wine release 1.5.25
...lbacks over time. mmdevapi/tests: Produce audible 16bit output too. winmm: WAVE_OPEN_QUERY causes no WIM/WOM_OPEN notification. mmsystem: Use SEGPTR when the .spec says so. mmsystem: Do not rewrite input parameters. mmsystem: Always use CALLBACK_FUNCTION to update MIDI/WAVEHDR.dwFlags. winealsa: Reword some MIDI log messages. wineoss: Add midi MTC Quarter Frame support (on output). winmm: Prevent some MIDI race conditions. Ken Thomases (20): winemac: Discard old frame changed events when setting frame for off-screen windows, too. winemac: D...
2007 Jul 13
0
Wine release 0.9.41
...: Add PYT and PYST time zones. Kai Blin (1): ws2_32: Handle IPv6 in WSAStringToAddress. Ken Thomases (6): winecoreaudio: Enable DirectSound HEL mode for output. winecoreaudio: Enable DirectSound HEL mode for input. winecoreaudio: Improve safety of iterations when returning WAVEHDRs to client. winecoreaudio: Correct the AudioBufferList allocated for input. winecoreaudio: Protect against AudioUnitRender clobbering our buffer list. winecoreaudio: Report format error on sample rate mismatch when opening wave-in device. Kov?cs Andr?s (1): d3d10: Add stub...