search for: output_sampl

Displaying 13 results from an estimated 13 matches for "output_sampl".

Did you mean: output_samples
2015 Apr 21
2
Availability of the 1.1.1 stable version
...ve it is using the floating point only by default. We are using 8k samples and mono so the commands is as follows. [root at MEDIA opus-1.1]# ./opus_demo -d 8000 1 opus_encoded_crash.opus opus_encoded_crash.pcm *And segmentation is as below..*. ............ Calling opus_decode123. len[toggle]:79, output_samples:96000 data[0] = 78 data[0] = 78 78 87 46 18 4f fe a6 be 7d 8 6 33 e2 79 ee e4 71 55 a7 3a 8 c9 48 d6 a7 20 3b 7 95 18 b8 4b 8f 24 fa a6 50 87 97 9c d7 13 d0 b2 c3 c4 6d 2f 8b 6c 13 6f bb 16 cc 20 85 4e c7 5d 2e 90 41 ae 47 8b 3e 36 eb c7 c8 28 94 3 c3 f9 52 aa 84 output_samples ==<160>...
2002 Apr 11
1
libao: IRIX patch
...); alClosePort(internal->alport); return 0; } - + device->driver_byte_format = AO_FMT_NATIVE; - + return 1; } -/* - * play the sample to the already opened file descriptor - */ -int ao_plugin_play(ao_device *device, const char *output_samples, +/* Play the sampled audio data to the already opened device. */ +int ao_plugin_play(ao_device *device, const char *output_samples, uint_32 num_bytes) { + uint_32 num_frames; ao_irix_internal *internal = (ao_irix_internal *) device->internal; - - alWriteFrames(int...
2015 Apr 21
3
Availability of the 1.1.1 stable version
...mples and mono so the commands is as follows. > > > > [root at MEDIA opus-1.1]# ./opus_demo -d 8000 1 opus_encoded_crash.opus > > opus_encoded_crash.pcm > > > > *_And segmentation is as below.._*. > > ............ > > Calling opus_decode123. len[toggle]:79, output_samples:96000 > > data[0] = 78 > > data[0] = 78 > > 78 87 46 18 4f fe a6 be 7d 8 6 33 e2 79 ee e4 71 55 a7 3a 8 c9 48 d6 > > a7 20 3b 7 95 18 b8 4b 8f 24 fa a6 50 87 97 9c d7 13 d0 b2 c3 c4 6d 2f > > 8b 6c 13 6f bb 16 cc 20 85 4e c7 5d 2e 90 41 ae 47 8b 3e 36 eb c7 c8 28...
2016 Jan 07
2
Issue with decoding 8-bit PCM data
...} opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); ui32SizeOfWrBuf = (ui32SamplingRate*ui32Channel*FRAME_SIZE_IN_MS*ui8ScaleFactor)/1000; opi16_out = (int16_t*)calloc(((ui32SizeOfWrBuf/ui8ScaleFactor)+1),sizeof(int16_t)); pcRdBuf = (uint8_t *)calloc(MAX_PACKET,sizeof(uint8_t)); output_samples = opus_decode(sOpusDec, (const unsigned char *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFactor), 0); I am not able to understand what the issue is. Or do I need to look at the encoder? Regards Amit -------------- next part -------------- An HTML attachment was scrubbed... URL:...
2015 Apr 21
0
Availability of the 1.1.1 stable version
...t. > > We are using 8k samples and mono so the commands is as follows. > > [root at MEDIA opus-1.1]# ./opus_demo -d 8000 1 opus_encoded_crash.opus > opus_encoded_crash.pcm > > *_And segmentation is as below.._*. > ............ > Calling opus_decode123. len[toggle]:79, output_samples:96000 > data[0] = 78 > data[0] = 78 > 78 87 46 18 4f fe a6 be 7d 8 6 33 e2 79 ee e4 71 55 a7 3a 8 c9 48 d6 > a7 20 3b 7 95 18 b8 4b 8f 24 fa a6 50 87 97 9c d7 13 d0 b2 c3 c4 6d 2f > 8b 6c 13 6f bb 16 cc 20 85 4e c7 5d 2e 90 41 ae 47 8b 3e 36 eb c7 c8 28 > 94 3 c3 f9 52 aa 8...
2000 Aug 12
1
libao patch: Minor clean up / Byte-order proposal
...ao_alsa.c 2000/07/22 01:57:05 1.1 +++ vorbis-tools/libao/ao_alsa.c 2000/08/13 00:30:01 @@ -38,7 +38,7 @@ typedef struct ao_alsa_internal_s { snd_pcm_t *pcm_handle; - void *buf; + char *buf; int buf_size; int buf_end; int card; @@ -191,9 +191,9 @@ ao_alsa_play (ao_internal_t *state, void* output_samples, uint_32 num_bytes) { ao_alsa_internal_t *s = (ao_alsa_internal_t *) state; - snd_pcm_t *pcm_handle = s->pcm_handle; int packed = 0; int copy_len; + char *samples = (char *) output_samples; while (packed < num_bytes) { @@ -203,9 +203,7 @@ else copy_len = s->buf_size-s...
2015 Apr 22
0
Availability of the 1.1.1 stable version
...ds is as follows. >> > >> > [root at MEDIA opus-1.1]# ./opus_demo -d 8000 1 opus_encoded_crash.opus >> > opus_encoded_crash.pcm >> > >> > *_And segmentation is as below.._*. >> > ............ >> > Calling opus_decode123. len[toggle]:79, output_samples:96000 >> > data[0] = 78 >> > data[0] = 78 >> > 78 87 46 18 4f fe a6 be 7d 8 6 33 e2 79 ee e4 71 55 a7 3a 8 c9 48 d6 >> > a7 20 3b 7 95 18 b8 4b 8f 24 fa a6 50 87 97 9c d7 13 d0 b2 c3 c4 6d 2f >> > 8b 6c 13 6f bb 16 cc 20 85 4e c7 5d 2e 90 41 ae 47...
2015 Apr 20
1
Availability of the 1.1.1 stable version
Hi, We are able to reproduce the issue with the 1.1 opus_demo (sample file). We captured the frames in our server just before the opus_decode and fed the file to opus_demo (1.1) and it is crashing. Same file is tested with 1.1.1 and it is fine. So this is in line with our server testing observation and I think here we can conclude that the 1.1 library is crashing while handling a specific mode
2016 Jan 07
3
Issue with decoding 8-bit PCM data
...at thaumas.net> wrote: > On 07/01/16 10:04 AM, Amit Ashara wrote: > > > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); > > OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return > value here you should get OPUS_UNIMPLEMENTED. > > > output_samples = opus_decode(sOpusDec, (const unsigned char > > *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFactor), 0); > > I suspect the issue is dividing by ui8ScaleFactor = 1 here. > OPUS_SET_LSB_DEPTH works as a precision hint to the encoder about where > to set the noise...
2001 Mar 16
3
Patches for NetBSD
...driver_tree_t)); if (!dt) return NULL; $NetBSD: patch-ad,v 1.1 2001/03/16 10:10:35 wiz Exp $ --- src/ao_wav.c.orig Sat Feb 24 02:31:46 2001 +++ src/ao_wav.c @@ -221,7 +221,7 @@ /* Swap the bytes into the swap buffer (so we don't mess up the output_samples buffer) */ - for(i = 0; i < num_bytes/2; i+=2) { + for(i = 0; i < num_bytes; i+=2) { s->swap_buffer[i] = ((char *) output_samples)[i+1]; s->swap_buffer[i+1] = ((char *) output_samples)[i]; } vorbis-tools: $NetBSD...
2008 Dec 08
0
sndio support for libao
...IVE; + par.bits = format->bits; + par.rate = format->rate; + par.pchan = format->channels; + if (!sio_setpar(hdl, &par)) + return 0; + device->driver_byte_format = AO_FMT_NATIVE; + if (!sio_start(hdl)) + return 0; + return 1; +} + +int ao_plugin_play(ao_device *device, const char *output_samples, uint_32 num_bytes) +{ + struct sio_hdl *hdl = (struct sio_hdl *)device->internal; + + if (!sio_write(hdl, output_samples, num_bytes)) + return 0; + return 1; +} + +int ao_plugin_close(ao_device *device) +{ + struct sio_hdl *hdl = (struct sio_hdl *)device->internal; + + if (!sio_stop(hdl))...
2016 Jan 07
0
Issue with decoding 8-bit PCM data
On 07/01/16 10:04 AM, Amit Ashara wrote: > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return value here you should get OPUS_UNIMPLEMENTED. > output_samples = opus_decode(sOpusDec, (const unsigned char > *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFactor), 0); I suspect the issue is dividing by ui8ScaleFactor = 1 here. OPUS_SET_LSB_DEPTH works as a precision hint to the encoder about where to set the noise floor, but opus_decode s...
2016 Jan 09
0
Issue with decoding 8-bit PCM data
...;> >>>> > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample)); >>>> >>>> OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return >>>> value here you should get OPUS_UNIMPLEMENTED. >>>> >>>> > output_samples = opus_decode(sOpusDec, (const unsigned char >>>> > *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFactor), 0); >>>> >>>> I suspect the issue is dividing by ui8ScaleFactor = 1 here. >>>> OPUS_SET_LSB_DEPTH works as a precision hint t...