Displaying 18 results from an estimated 18 matches for "inputbuff".
Did you mean:
inputbuf
2011 Nov 16
2
Just getting noise
...ht noted, I changed me code so that the state is created in the
constructor and destroyed in the destructor of the object. However I'm
still getting the same issue although I'm sure that would have bit me
sooner or later.
The new code is as follows.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
short *in=(short*)inputBuffer;
float *input = new float[(inputSize/2)]();
int nbBytes;
int i;
for (i=0;i<(inputSize/2);i++)
{
input[i]=in[i];
}
/*Flush all the bits in the struct so we can encode a new frame*/
s...
2011 Nov 17
1
Just getting noise
...speex_encode_int greatly simplifies my
code I'm not sure why the sample I was working off of was converting
the shorts to floats then calling the other encode/decode methods.
Based off of your suggestions I tried the following but I get the same
result.
virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
size_t& outputSize)
{
speex_bits_reset(&mBits);
speex_encode_int(mState, (Enigma::s16*)inputBuffer, &mBits);
speex_bits_insert_terminator(&mBits);
outputSize = speex_bits_nbytes(&mBits);
/*Copy the bits to an array of char that can be writte...
2011 Nov 16
2
Just getting noise
...uffer right. Below
are the functions I'm using. The audio data is from OpenAL and is
16000 frequency, 16bits, and the frames being passed to the included
functions are 640 bytes which if my math is right (very well may not
be) that is 20ms.
? ? ? ? ? ? ? ?virtual Enigma::u8* Encode(Enigma::u8*
inputBuffer,size_t inputSize,
size_t& outputSize)
? ? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ? ? ? ?short *in=(short*)inputBuffer;
? ? ? ? ? ? ? ? ? ? ? ?float *input = new float[(inputSize/2)]();
? ? ? ? ? ? ? ? ? ? ? ?int nbBytes;
? ? ? ? ? ? ? ? ? ? ? ?/*Holds the state of the encoder*/
? ? ? ? ? ? ? ? ? ? ? ?v...
2011 Nov 16
0
Just getting noise
...o that the state is created in the
> constructor and destroyed in the destructor of the object. However I'm
> still getting the same issue although I'm sure that would have bit me
> sooner or later.
> The new code is as follows.
>
> virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize,
> size_t& outputSize)
> {
> short *in=(short*)inputBuffer;
> float *input = new float[(inputSize/2)]();
> int nbBytes;
> int i;
>
> for (i=0;i<(inputSize/2);i++)
> {
> input[i]=in[i];
> }
>
> /*Flus...
2011 Nov 16
0
Just getting noise
...nctions I'm using. The audio data is from OpenAL and is
> 16000 frequency, 16bits, and the frames being passed to the included
> functions are 640 bytes which if my math is right (very well may not
> be) that is 20ms.
>
> virtual Enigma::u8* Encode(Enigma::u8*
> inputBuffer,size_t inputSize,
> size_t& outputSize)
> {
> short *in=(short*)inputBuffer;
> float *input = new float[(inputSize/2)]();
> int nbBytes;
> /*Holds the state of the enco...
2011 Jul 17
0
[LLVMdev] Trying to optimize out store/load pair
...-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
target triple = "i386-apple-darwin9.0.0"
%struct.AKEKernelContext = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define void @Main(i8* nocapture %inputBuffer, i32 %threadSliceNum) nounwind {
entry:
%.compoundliteral = alloca %struct.AKEKernelContext, align 4
%x139 = getelementptr inbounds %struct.AKEKernelContext* %.compoundliteral, i32 0, i32 0
%y141 = getelementptr inbounds %struct.AKEKernelContext* %.compoundliteral, i32 0, i32 1
%yVal = ge...
2011 Jul 17
0
[LLVMdev] Trying to optimize out store/load pair
...-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
target triple = "i386-apple-darwin9.0.0"
%struct.AKEKernelContext = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define void @Main(i8* nocapture %inputBuffer, i32 %threadSliceNum) nounwind {
entry:
%.compoundliteral = alloca %struct.AKEKernelContext, align 4
%x139 = getelementptr inbounds %struct.AKEKernelContext* %.compoundliteral, i32 0, i32 0
%y141 = getelementptr inbounds %struct.AKEKernelContext* %.compoundliteral, i32 0, i32 1
%yVal = getele...
2006 May 21
2
Re: High pitched whine with Speex
...,
&channel->speexOutgoingFrameSampleCount);
DECODING INIT:
channel->dec_state=speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(channel->dec_state, SPEEX_GET_FRAME_SIZE,
&channel->speexIncomingFrameSampleCount);
ENCODING:
speex_encode(channel->enc_state, (float *) inputBuffer, &speexBits);
bytesWritten = speex_bits_write(&speexBits, tempOutput+1, 2048-1);
DECODING:
speex_bits_read_from(&speexBits, (char*)(packet->data+1), packet->length-1);
speex_decode(channel->dec_state, &speexBits, (float*)tempOutput);
That's pretty much the extent of...
2005 Jan 04
1
Speex sound a little artificial?
Il ven, 2004-12-31 alle 20:19, Jean-Marc Valin ha scritto:
> DC (aka frequency zero) means that the signal isn't centered around
> zero. When there's a DC or lots of low frequencies, Speex cannot do a
> very good job.
Since in the future I'll hopefully have some time to experience Speex,
this catched my attention.
How can I understand when I got a DC?
I have an idea which
2007 Apr 25
0
echo cancellation on Blackfin DSK
...-------------------------------------------------------
// CallBackFunction() - Gets called by the audio pseudo-driver when a new
audio
// block is ready to be played.
//-----------------------------------------------------------------------------
int CallBackFunction(PVOID inputBuffer, PVOID outputBuffer, PVOID userData)
{
ezTurnOnLED(LED_CALLBACK);
CYCLES_START(g_CycleStats);
int i;
volatile ARTYP_16BITS *in =(ARTYP_16BITS *)inputBuffer;
volatile ARTYP_16BITS *out=(ARTYP_16BITS *)outputBuffer;
volatile ARTYP_16BITS *out2;
short...
2006 May 21
3
Re: High pitched whine with Speex
...DECODING INIT:
>> channel->dec_state=speex_decoder_init(&speex_nb_mode);
>> speex_decoder_ctl(channel->dec_state, SPEEX_GET_FRAME_SIZE,
>> &channel->speexIncomingFrameSampleCount);
>>
>> ENCODING:
>> speex_encode(channel->enc_state, (float *) inputBuffer, &speexBits);
>> bytesWritten = speex_bits_write(&speexBits, tempOutput+1, 2048-1);
>>
>> DECODING:
>> speex_bits_read_from(&speexBits, (char*)(packet->data+1),
>> packet->length-1);
>> speex_decode(channel->dec_state, &speexBits, (flo...
2006 May 21
0
Re: High pitched whine with Speex
...ampleCount);
>
> DECODING INIT:
> channel->dec_state=speex_decoder_init(&speex_nb_mode);
> speex_decoder_ctl(channel->dec_state, SPEEX_GET_FRAME_SIZE,
> &channel->speexIncomingFrameSampleCount);
>
> ENCODING:
> speex_encode(channel->enc_state, (float *) inputBuffer, &speexBits);
> bytesWritten = speex_bits_write(&speexBits, tempOutput+1, 2048-1);
>
> DECODING:
> speex_bits_read_from(&speexBits, (char*)(packet->data+1), packet-
> >length-1);
> speex_decode(channel->dec_state, &speexBits, (float*)tempOutput);
>
&...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...t buffer pointer */
- int sign; /* Current adpcm sign bit */
- int delta; /* Current adpcm output value */
- int step; /* Stepsize */
- int valpred; /* Predicted value */
- int vpdiff; /* Current change to valpred */
- int index; /* Current step change index */
- int inputbuffer; /* place to keep next 4-bit value */
- int bufferstep; /* toggle between inputbuffer/input */
-
- outp = outdata;
- inp = (signed char *)indata;
-
- valpred = state->valprev;
- index = state->index;
- step = stepSizeTable[index];
-
- bufferstep = 0;
-
- for (...
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...{}
virtual void resolveRelocation(const RelocationEntry &RE, uint64_t Value);
virtual void processRelocationRef(unsigned SectionID,
@@ -97,6 +109,7 @@ public:
virtual bool isCompatibleFormat(const ObjectBuffer *Buffer) const;
virtual ObjectImage *createObjectImage(ObjectBuffer *InputBuffer);
virtual StringRef getEHFrameSection();
+ virtual void finalizeLoad();
virtual ~RuntimeDyldELF();
};
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h?rev=188726&a...
2004 Aug 06
2
More libshout questions
Okay,
I am using libshout to stream to a NullSoft Shoutcast server. I am
using libmad and libmp3lame to do re-encoding on the fly. I am streaming
to the server (currently) with shout_send_raw(). When I try to use
shout_metadata_add(), I get a segfault in strdup(). Anyone have any
ideas as to why? Everything else works fine, just not the metadata.
Thanks In Advance,
Deven
--- >8 ----
2004 Aug 06
2
More libshout questions
..., 0} <repeats
16 times>}, {{0, 0, 0, 0, 0, 0, 0,
0} <repeats 16 times>}}}}, phase = 0, pcm = {samplerate = 0,
channels = 0, length = 0, samples = {{
0 <repeats 1152 times>}, {0 <repeats 1152 times>}}}}
Timer = {seconds = 0, fraction = 0}
InputBuffer = '\0' <repeats 40959 times>
OutputBuffer = '\0' <repeats 8191 times>
OutputPtr = (unsigned char *) 0xbffeca30 ""
i = 134550048
FrameCount = 0
filePtr = (FILE *) 0x805c798
#5 0x0804b4d1 in main (argc=1, argv=0x804d8f8)...
2015 Dec 06
3
source buffer
I will give a little background...
For more than 10 years until now im using Shoutcast 1.9.5/1.9.8 win32 on my
machines. "What's working, d'ont touch".
Now im changing to ice 2.4.2.
The flexibility of the ice is great.
but, because of the things that "hidden" from the eye im little bit afraid
to make changes that will be dramatic for the listeners.
So, for the
2007 Feb 16
0
Wine release 0.9.31
...d clsidString (Coverity).
dinput: Fix dereference pointer after NULL check (Coverity).
kernel32: Initialize owner_exists (Coverity).
oleview: Removed dead code (Coverity).
riched20: Fixed wrong condition (Coverity).
winex11.drv: Removed dead code (Coverity).
wmc: inputbuffer is a WCHAR array.
riched20: Removed more dead code.
ntdll: Initialize needs_close to FALSE.
devenum: Initialize hKeysub.
kernel32: Remove CloseHandle call.
kernel32/tests: Fixed several uninitialized variables.
winedump: Free function_name on all error paths....