Displaying 4 results from an estimated 4 matches for "numframes".
2006 Sep 07
2
Getting subframe type=verbatim on 16 bit files
...moving data into 32 bit shape
uint8_t *buffer8 = NULL;
uint16_t *buffer16 = NULL;
uint32_t *buffer32 = NULL;
unsigned sample32;
unsigned sample, channel;
uint32_t bitsPerSample = this->get_bits_per_sample();
numFrames = inData.GetSize();
numChannels = this->get_channels();
// How big is our sample that we want to give to FLACC?
// bitsPerSample is 8,16,24,32
// So 8 = no change for numFrames
// 16 = half it
// 24,32 = 1/4 the needs..
if (bitsPerSample == 16)...
2006 Sep 06
2
Getting subframe type=verbatim on 16 bit files
I'm using libFLACC++ and libFLAC and I think that I'm using the calls in the
typical order (see code below). But every monoe or stereo file that I send
thru I get files that are the same sze as the orginal wave files.
Doing a flac -a on the flac files I see that I get:
frame=9 blocksize=4608 sample_rate=8000 channels=1
channel_assignment=INDEPENDENT
subframe=0
2005 Dec 12
0
Real time in ARM - please help
...thanks a lot.
Mon
int PCMToSpx (BSTR FileOpen, BSTR FileSave, bool VAD, short BitRateChoice)
{
__int8 Speex [6];
__int16 SamplingRate = 8000;
__int8 BitsPerSampleX8 = 2 /* ie 2*8=16-bit */, NumBytes /*aka nBytes or
nbBytes */;
FILE *fin, *fout;
void *state;
int FrameSize, NumFrames = 0;
int BitRate, temp;
__int16 in [MaxFrameSize];
__int8 cbits [MaxFrameBytes];
SpeexBits bits;
// ********************************** Program Statements
**********************************//
Speex[0] = 'S';
Speex[1] = 'p';
Speex[2] = 'e';
Sp...
2004 Sep 10
1
seek problem
...et them after every
decoder_init()/decoder_finish() pair. Is this intentional or
a bug in 1.03?
BTW2 - I still think that it would be better if
seekable_stream_decoder_seek_absolute() wouldn't call
the write callback.
And finally, a function like
seekable_stream_decoder_process_frames(decoder, numframes)
would be useful, IMHO.
- Peter.