Displaying 18 results from an estimated 18 matches for "bufferlength".
2004 Aug 06
0
Lost ogg sync using jspeex
...am just planning to test how jspeex works.
// File AudioCapture.java
import javax.sound.sampled.spi.*;
import javax.sound.sampled.*;
import org.xiph.speex.spi.*;
import java.util.*;
import java.net.*;
import java.io.*;
public class AudioCapture
{
public static void main(String args[])
{
int bufferlength=44100;
int framelength=1280;
int frameduration=1000;
Vector recordBuffer=new Vector();
try
{
AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);
System.out.println("AudioFormat Created");
DataLine.Info dataLineInfo = n...
2004 Aug 06
0
Lost ogg sync using jspeex
...am just planning to test how jspeex works.
// File AudioCapture.java
import javax.sound.sampled.spi.*;
import javax.sound.sampled.*;
import org.xiph.speex.spi.*;
import java.util.*;
import java.net.*;
import java.io.*;
public class AudioCapture
{
public static void main(String args[])
{
int bufferlength=44100;
int framelength=1280;
int frameduration=1000;
Vector recordBuffer=new Vector();
try
{
AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);
System.out.println("AudioFormat Created");
DataLine.Info dataLineInfo = n...
2004 Aug 06
3
q about jspeex
Hi Marc,
thanks for the quick reply.
Marc Gimpel wrote:
> It would appear the the 'pcm2speex.read(frame, 0, frame.length)' is
> blocking which means that it is waiting for data from the underlying
> inputstream (i.e.AudioInputStream(t.input)). If it could read
> sufficient data it would transcode it. If it recieved an EOF, it
> should do some zero padding and then
2004 Aug 06
0
Please Help, Lost ogg sync using jspeex
...mpled.*;<BR>import org.xiph.speex.spi.*;<BR>import java.util.*;<BR>import java.net.*;<BR>import java.io.*;</FONT></DIV>
<DIV><FONT face=Arial size=2>public class AudioCapture{<BR> public static void main(String args[])<BR> {<BR> int bufferlength=44100;<BR> int framelength=1280;<BR> int frameduration=1000;<BR> Vector recordBuffer=new Vector();<BR> try<BR> {<BR> AudioFormat audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000, 16, 1, 2, 8000, true);<BR> System.out.println(&quo...
2007 Nov 04
3
WaveIn/WaveOut and Speex
...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);
Then, my de...
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* audio stream generated by WaveIn to a format that can be understood by Speex. Would using speex_decode_int and speex_encode_int instead...
2008 Jun 30
2
[Bug 16568] New: Not displaying video duration in TheRealNews video player
http://bugs.freedesktop.org/show_bug.cgi?id=16568
Summary: Not displaying video duration in TheRealNews video
player
Product: swfdec
Version: 0.7.x
Platform: Other
URL: http://www.therealnews.com/
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component:
2007 Nov 04
0
WaveIn/WaveOut and Speex
...gt; 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 bytesWritte...
2007 Nov 04
0
WaveIn/WaveOut and Speex
...aveFormat.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
...aveFormat.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
...aveFormat.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[..];
>>
>> }
>>
>> ...
>>...
2019 Aug 29
0
Office365
...an the same steps and got the same message. Through powershell we get "directory service is unavailable" error.
We then ran a netmon trace on the 2008R2 box when running the powershell bits and it seems to be connecting to the Ubuntu server. It seems to using GSS-SPNEGO
LDAPSASLBuffer: BufferLength: 102, AuthMechanism: GSS-SPNEGO
The smb.conf looks like
[global]
workgroup = LIN
realm = LIN.GROUP
netbios name = SERVER5
server role = active directory domain controller
idmap_ldb:use rfc2307 = yes
log file = /var/log/samba/log.%m
log lev...
2004 Aug 06
0
JSpeex help
...(targetInfo);
AudioInputStream auin=new AudioInputStream (tdl);
PipedOutputStream pout=new PipedOutputStream();
PipedInputStream pin=new PipedInputStream(pout);
pcm2speex=new Pcm2SpeexAudioInputStream (pin, format, AudioSystem.NOT_SPECIFIED);
tdl.open(format,8000);
t.input.start();
double ratio = t.bufferlength / t.framelength;
byte[] frame=new byte[t.framelength];
while(true) {
int n=auin.read(frame, 0, frame.length);
System.out.println(""+n+" bytes read.");
pout.write(frame);
int m=pcm2speex.read();
System.out.println(""+m+" bytes read - 2.");
}
But, w...
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
...de =
+>>> id=mplayer&javascriptid=mplayer&frontcolor=0xFFFFFF&backcolor=0x000000&enablejs=true&largecontrols=false&file=http://kanal5.se/c/ext/k5video/playlist?selectType=playlist-name%26selectWord=Mazda%26selectType2=playlist-name%26selectWord2=Fraga Olle 1107&bufferlength=6&displayheight=168&height=168&width=225&autostart=false&repeat=list&shuffle=false&overstretch=fit&volume=80&rotatetime=5&showicons=true&bwfile=/html/themes/kanal5/images/100k.jpg&bwstreams=400_400,640_700&useaudio=false&usecaptions=false&...
2004 Aug 06
0
JSpeex help
...(targetInfo);AudioInputStream auin=new AudioInputStream
(tdl);PipedOutputStream pout=new
PipedOutputStream();PipedInputStream
pin=new PipedInputStream(pout);pcm2speex=new
Pcm2SpeexAudioInputStream (pin,
format,
AudioSystem.NOT_SPECIFIED);tdl.open(format,8000);t.input.start();double
ratio = t.bufferlength / t.framelength; byte[]
frame=new
byte[t.framelength];while(true) { int
n=auin.read(frame, 0,
frame.length); System.out.println(""+n+" bytes
read.");
pout.write(frame); int m=pcm2speex.read();
System.out.println(""+m+" bytes read - 2.");}
But, when I...
2008 Jul 11
0
Wine release 1.1.1
...symbolic names for VT_LPSTR and VT_LPWSTR in dump_TypeDesc.
include: Add uuid to interfaces in pstore.idl.
include: Add uuids to interfaces in amvideo.idl.
include: Add uuids to interfaces in sensevts.idl.
rpcrt4: Add a comment in NdrSendReceive explaining why we change the BufferLength.
rpcrt4: Reset the BufferLength to the used part of the buffer in NdrProxySendReceive.
widl: Increment the buffer offset by 8 for embedded pointers inside varying arrays in varying structures.
widl: Check that the structure has been defined in check_remoting_args.
widl: Cons...
2008 Jun 27
0
Wine release 1.1.0
...msvcrt: Make EXCEPTION_PRIV_INSTRUCTION generate SIGILL.
Przemys?aw Bia?ek (1):
gdiplus: Implementation of function GdipDrawEllipse.
Rob Shearman (40):
rpcrt4: Fix ndr_marshall tests to cope with using pointer ids instead of using pointer values.
rpcrt4: Save the previous BufferLength in test_ndr_buffer and use it when testing the expected buffer length after the NdrFreeBuffer call.
rpcrt4: Reduce the timeout of waiting on the stop event in the server test to one second.
rpcrt4: Zero the memory of the s1 structure in test_simple_struct to avoid a Valgrind warning....
2009 Nov 13
0
Wine release 1.1.33
...Test_DBProperties_GetProperty.
rpcrt4: Stop searching through transfer syntaxes in process_bind_packet when one has been found.
rpcrt4: Replace sizeofs with FIELD_OFFSET in RPCRT4_BuildBindNackHeader to avoid relying on ANYSIZE_ARRAY being 1.
widl: Include range types in constant BufferLength calculation for server function.
Revert "rpcrt4: The get_ranged_enum test doesn't work on Windows, so don't execute it for the moment.".
Roderick Colenbrander (6):
winex11: Make sure the formats are the same instead of the depths since the bit ordering can be differen...