Lines Matching defs:buffer

92 {	static float buffer [BUFFER_LEN] ;
127 while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN)))
129 buffer [m] *= scale ;
130 alsa_write_float (alsa_dev, buffer, BUFFER_LEN / sfinfo.channels, sfinfo.channels) ;
134 { while ((readcount = sf_read_float (sndfile, buffer, BUFFER_LEN)))
135 alsa_write_float (alsa_dev, buffer, BUFFER_LEN / sfinfo.channels, sfinfo.channels) ;
205 { fprintf (stderr, "cannot set buffer size (%s)\n", snd_strerror (err)) ;
223 { fprintf (stderr, "Can't use period equal to buffer size (%lu == %lu)", alsa_period_size, buffer_size) ;
239 /* note: set start threshold to delay start until the ring buffer is full */
364 { static short buffer [BUFFER_LEN] ;
400 buffer [m] = scale * float_buffer [m] ;
401 writecount = write (audio_device, buffer, readcount * sizeof (short)) ;
405 { while ((readcount = sf_read_short (sndfile, buffer, BUFFER_LEN)))
406 writecount = write (audio_device, buffer, readcount * sizeof (short)) ;
494 HANDLE Event ; /* signal that a buffer is free */
496 short buffer [WIN32_BUFFER_LEN / sizeof (short)] ;
511 /* fill a buffer if there is more data and we can read it sucessfully */
520 { /* Fix buffer length if this is only a partial block. */
527 /* count another buffer in use */
532 /* use the other buffer next time */
558 /* let main loop know a buffer is free */
612 audio_data.whdr [0].lpData = (char*) audio_data.buffer ;
613 audio_data.whdr [1].lpData = ((char*) audio_data.buffer) + sizeof (audio_data.buffer) / 2 ;
615 audio_data.whdr [0].dwBufferLength = sizeof (audio_data.buffer) / 2 ;
616 audio_data.whdr [1].dwBufferLength = sizeof (audio_data.buffer) / 2 ;
621 /* length of each audio buffer in samples */
622 audio_data.bufferlen = sizeof (audio_data.buffer) / 2 / sizeof (short) ;
646 /* wait for buffer to be released */
649 /* refill the buffer if there is more data to play */
678 short buffer [BUFFER_LEN] ;
717 while ((readcount = sf_read_short (sndfile, buffer, BUFFER_LEN)))
718 sio_write (hdl, buffer, readcount * sizeof (short)) ;
736 { static short buffer [BUFFER_LEN] ;
775 /* Delay time equal to 1/4 of a buffer in microseconds. */
780 { read_count = sf_read_short (sndfile, buffer, BUFFER_LEN) ;
782 { memset (&(buffer [read_count]), 0, (BUFFER_LEN - read_count) * sizeof (short)) ;
792 write_count = write (audio_fd, &(buffer [start_count]), output_count) ;