Displaying 18 results from an estimated 18 matches for "navgbytespersec".
2001 Aug 26
4
On the "broken" .WAV files issue
...ribes the format of waveform-audio data. Only
format information common to all waveform-audio data formats is included in this
structure. This structure has been superseded by the WAVEFORMATEX structure.
typedef struct {
WORD wFormatTag;
WORD nChannels;
DWORD nSamplesPerSec;
DWORD nAvgBytesPerSec;
WORD nBlockAlign;
} WAVEFORMAT;
Members
wFormatTag
Format type. The following type is defined:
WAVE_FORMAT_PCM
Waveform-audio data is PCM.
nChannels
Number of channels in the waveform-audio data. Mono data uses one channel and
stereo data uses two channels.
nSamplesPerSec...
2001 Mar 14
2
Playing Problems :(
...ggB->wfx.nChannels = oggstruct.vi->channels;
p_oggB->wfx.nSamplesPerSec = (unsigned long) oggstruct.vi->rate;
p_oggB->wfx.wBitsPerSample = 16;
p_oggB->wfx.nBlockAlign = (oggstruct.vi->channels *
p_oggB->wfx.wBitsPerSample) / 8;
p_oggB->wfx.nAvgBytesPerSec = (unsigned long)
(p_oggB->wfx.nSamplesPerSec * p_oggB->wfx.nBlockAlign);
p_oggB->wfx.cbSize = 0;
Could someone send me source code, how he is playing ogg file, or give me
some hint? Thanks a lot!
Michal Simonik
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg pr...
2005 Jan 05
4
Encoding and decoding problem in speex 1.0.4
...ing 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;
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;
::waveInUnprepareH...
2006 Nov 01
1
Integrating speex with VideoNet application: Constant background noise
...ata 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_init(&speex_nb_mode);
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
In my recording callback function
LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam)
{
....
dataPtr = (char *)lp...
2006 Nov 02
1
Integrating speex with VideoNet application: Constantbackground noise
...d.
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_init(&speex_nb_mode);
speex_encoder_ctl(enc_state,
SPEEX_SET_QUALITY, &quality);
In my recording callback
function
LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM
lParam)
{
....
dataP...
2004 Dec 28
2
Sound distorted after normalized.
...t
not much info on this area.
The following is my setting from sound card using
mm_system sdk.
WAVEFORMATEX *wfx = (WAVEFORMATEX *)input;
wfx->nSamplesPerSec = 8000;
wfx->nChannels = 1;
wfx->wFormatTag = WAVE_FORMAT_PCM;
wfx->wBitsPerSample = 16;
wfx->nBlockAlign = 2;
wfx->nAvgBytesPerSec = 16000;
Thanks in advance,
YueWeng
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
2005 Jan 05
0
Encoding and decoding problem in speex 1.0.4
...rmatEx.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;
>
>
>
You want 16 bits per sample, and 16000 bytes per second...
-SteveK
2006 Oct 30
0
Integrating speex with VideoNet application: Constant background noise
...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_init(&speex_nb_mode);
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
In my recording callback function
LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM lParam)
{
....
dataPtr = (char *)lp...
2009 Jan 20
0
VoIP with wavefrom and speex
...de again:
save_length = audio_decode(Hdr,buffer,save_length);
Here are the waveform options:
waveform.nChannels = 1;
waveform.wFormatTag = WAVE_FORMAT_PCM;
waveform.wBitsPerSample = 16;
waveform.nSamplesPerSec = 8000;
waveform.nBlockAlign = (waveform.nChannels*waveform.wBitsPerSample)/8;
waveform.nAvgBytesPerSec = waveform.nSamplesPerSec*waveform.nBlockAlign;
waveform.cbSize = 0;
What am I doing wrong? Are there any examples for encoding a waveform pcm stream in realtime (I didn't found any)?
Thanks for your help,
Peter
--
Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen:...
2016 Jul 11
0
[PATCH] wave_out: fix casts
...UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
{
if ( uMsg == WOM_DONE ) {
EnterCriticalSection ( &cs );
@@ -125,7 +125,7 @@ Set_WIN_Params ( FILE_T dummyFile ,
outFormat.nBlockAlign = (outFormat.wBitsPerSample + 7) / 8 * outFormat.nChannels;
outFormat.nAvgBytesPerSec = outFormat.nSamplesPerSec * outFormat.nBlockAlign;
- switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD)wave_callback, 0, CALLBACK_FUNCTION ) )
+ switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD_PTR)wave_callback, 0, CALLBACK_FUNCTION ) )
{
case MMSYSERR_ALLO...
2012 Oct 25
2
WAVE PCM to OPUS and back
...e Opus in
this way? Thanks in advance
WAVEFORMATEX waveform;
waveform.cbSize = 0;
waveform.wFormatTag = WAVE_FORMAT_PCM;
waveform.nChannels = 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)...
2006 Nov 05
1
Integrating speex with VideoNet application: Constantbackground noise
...39;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_init(&speex_nb_mode);
speex_encoder_ctl(enc_state,
SPEEX_SET_QUALITY, &quality);
In my recording callback
function
LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM
lParam)
{
.......
2006 Dec 24
1
Integrating speex with VideoNet application: Constantbackground noise
...39;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_init(&speex_nb_mode);
speex_encoder_ctl(enc_state,
SPEEX_SET_QUALITY, &quality);
In my recording callback
function
LRESULT RecordSound::OnSoundData(WPARAM wParam, LPARAM
lParam)
{
.......
2017 Jun 23
0
Wine release 2.11
...string handler.
msi: Store string and record callback data separately.
msi: Pass the given record to the callback.
msacm32: Rewrite PCM conversion functions.
msi: Don't reimplement record formatting.
quartz: Restore a comment explaining mediatime.
quartz: Use nAvgBytesPerSec to calculate length.
winemp3.acm: Disallow operations encoding to MPEG.
msacm32: Don't add a format entry if it is decode-only.
msacm32: Add invalid parameter checks for acmFormatChoose().
msacm32: Implement ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT.
Zhenbo Li (1):
o...
2009 Sep 25
0
Wine release 1.1.30
...AME_URL_TYPE.
crypt32: Fix potential buffer overruns in CertGetNameStringW.
crypt32: Implement retrieving the encoded signer of a decoded signed message.
J?rg H?hle (6):
ddraw: Complete recognition of pixelformat 19: X8L8V8U8.
wineoss: Enforce invariant about BlockAlign and nAvgBytesPerSec.
winecoreaudio: Make supported format test more restrictive.
winecoreaudio: Enforce invariant about BlockAlign and nAvgBytesPerSec.
winecoreaudio: Added WAVEFORMATEXTENSIBLE support, for PCM only.
mciwave: Require at least 16 bytes in the WAVE fmt file header.
Ken Thomases...
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,
2020 Feb 28
0
Wine release 5.3
...evice() on top of NT symbolic links.
winegstreamer: Don't query or set GStreamer duration if the filter is stopped.
winegstreamer: Don't fail seeking methods if we couldn't query duration.
winegstreamer: Defer a seek to pause time if necessary.
winegstreamer: Use nAvgBytesPerSec to determine buffer size only for raw audio formats.
ddraw: Retrieve transform state from the primary stateblock.
ddraw: Stop setting the device state when setting transforms.
ddraw: Retrieve clip planes from the primary stateblock.
ddraw: Stop setting the device state in d3...
2009 Oct 09
0
Wine release 1.1.31
...ytes in the WAVE fmt header for PlaySound.
wineoss: Fix the buffer size check for more than 2 channels.
winecoreaudio: Accept up to 8 channels.
dsound: Get rid of redundant NULL check.
winmm/tests: Correct (IMA)ADPCM test.
dsound: Enforce invariant about BlockAlign and nAvgBytesPerSec.
dsound: Correct deallocations when DuplicateSoundBuffer fails.
mcicda: Fix an early return statement in Open.
Maarten Lankhorst (4):
winealsa.drv: Small capture fixes.
winealsa.drv: Add non-mmap support to dscapture.
winealsa.drv: Remove test for mmap in waveinit....