search for: bytestoread

Displaying 9 results from an estimated 9 matches for "bytestoread".

Did you mean: bytes_read
2007 Apr 02
1
Problems with stereo data
...lib") int main(int argc, char* argv[]) { FILE* fin = fopen(argv[1], "rb"); FILE* fout = fopen(argv[2], "wb"); void* State = speex_decoder_init(&speex_wb_mode); SpeexBits Bits; speex_bits_init(&Bits); const int FrameSize = 320; short Output[FrameSize]; short BytesToRead; char Buffer[1024]; SpeexStereoState StereoState = SPEEX_STEREO_STATE_INIT; while (!feof(fin)) { fread(&BytesToRead, sizeof(short), 1, fin); fread(Buffer, 1, BytesToRead, fin); speex_bits_read_from(&Bits, Buffer, BytesToRead); speex_decode_int(State, &Bits, Output); speex_decode...
2001 Feb 27
1
Winamp plugin; http streaming
...tream.c in the BufferThread function: bytesRead =3D recv(pThreadData->tcpSocket, pThreadData->circularBuffer + = pThreadData->circularBufferEnd, 1, 0); to read as follows: bytesRead =3D recv(pThreadData->tcpSocket, pThreadData->circularBuffer + = pThreadData->circularBufferEnd, bytesToRead, 0); peeds up streaming noticeably, as the plug-in doesn't spend half the = time streaming in the file 1 byte at a time. Comments are appreciated. -Chris M. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from th...
2007 Nov 04
3
WaveIn/WaveOut and Speex
...its); speex_bits_write(&bits, encBuffer, bytesWritten); Then, my decoding routine accepts the char buffer that was encoded with Speex: Decode(char* encBuffer, DWORD bufferLength) ... float* output = new float[frameSize]; ... speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); speex_decode(dec_state, &bits, output); char* outBuffer=... for(UINT i = 0; i < frameSize; i++) { outBuffer[retValIndex] = output[i]; retValIndex++; } When I try to play outBuffer with waveOut, I can hear the voice "somewhere far", but there is a lot of distortion n...
2007 Nov 04
2
WaveIn/WaveOut and Speex
...> Then, my decoding routine accepts the char buffer that was encoded with > Speex: > > > > Decode(char* encBuffer, DWORD bufferLength) > > ... > > float* output = new float[frameSize]; > > ... > > speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); > > speex_decode(dec_state, &bits, output); > > > > char* outBuffer=... > > for(UINT i = 0; i < frameSize; i++) > > { > > outBuffer[retValIndex] = output[i]; > > retValIndex++; > > } > > > > When I try to play outBuf...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...> Then, my decoding routine accepts the char buffer that was encoded with > Speex: > > > > Decode(char* encBuffer, DWORD bufferLength) > > ... > > float* output = new float[frameSize]; > > ... > > speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); > > speex_decode(dec_state, &bits, output); > > > > char* outBuffer=... > > for(UINT i = 0; i < frameSize; i++) > > { > > outBuffer[retValIndex] = output[i]; > > retValIndex++; > > } > > > > When I try to play outBuf...
2012 Mar 27
0
App. Delisprint hangs on second run
...2 0x7bc41bff NtReadFile+0x34e(hFile=0x34, hEvent=0x0(nil), apc=(nil), apc_user=0x0(nil), io_status=0x53e858, buffer=0x53e92c, length=0x10, offset=(nil), key=0x0(nil)) [/build/buildd/wine1.3-1.4/dlls/ntdll/file.c:624] in ntdll (0x0053e7f8) 3 0x7b83bef6 ReadFile+0x265(hFile=0x34, buffer=0x53e92c, bytesToRead=0x10, bytesRead=0x53e8cc, overlapped=(nil)) [/build/buildd/wine1.3-1.4/dlls/kernel32/file.c:439] in kernel32 (0x0053e888) 4 0x7ec1c27d rpcrt4_conn_np_read+0x3c(Connection=0x111bc8, buffer=0x53e92c, count=0x10) [/build/buildd/wine1.3-1.4/dlls/rpcrt4/rpc_transport.c:420] in rpcrt4 (0x0053e8d8) 5...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...ffer that was encoded >> with Speex: >> >> >> >> Decode(char* encBuffer, DWORD bufferLength) >> >> ... >> >> float* output = new float[frameSize]; >> >> ... >> >> speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); >> >> speex_decode(dec_state, &bits, output); >> >> >> >> char* outBuffer=... >> >> for(UINT i = 0; i < frameSize; i++) >> >> { >> >> outBuffer[retValIndex] = output[i]; >> >> retValIndex++; >&gt...
2007 Nov 05
0
Fw: RE: WaveIn/WaveOut and Speex
...ffer that was encoded >> with Speex: >> >> >> >> Decode(char* encBuffer, DWORD bufferLength) >> >> ... >> >> float* output = new float[frameSize]; >> >> ... >> >> speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); >> >> speex_decode(dec_state, &bits, output); >> >> >> >> char* outBuffer=... >> >> for(UINT i = 0; i < frameSize; i++) >> >> { >> >> outBuffer[retValIndex] = output[i]; >> >> retValIndex++; >&gt...
2007 Nov 05
2
WaveIn/WaveOut and Speex
...ffer that was encoded >> with Speex: >> >> >> >> Decode(char* encBuffer, DWORD bufferLength) >> >> ... >> >> float* output = new float[frameSize]; >> >> ... >> >> speex_bits_read_from(&bits, encBuffer + offset, bytesToRead); >> >> speex_decode(dec_state, &bits, output); >> >> >> >> char* outBuffer=... >> >> for(UINT i = 0; i < frameSize; i++) >> >> { >> >> outBuffer[retValIndex] = output[i]; >> >> retValIndex++; >&gt...