Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

read_sound_input(3alleg4) [debian man page]

read_sound_input(3alleg4)					  Allegro manual					 read_sound_input(3alleg4)

NAME
read_sound_input - Retrieves the last recorded audio buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int read_sound_input(void *buffer); DESCRIPTION
Retrieves the most recently recorded audio buffer into the specified location. The buffer size can be obtained by checking the return value from start_sound_input(). You must be sure to call this function at regular intervals during the recording (typically around 100 times a second), or some data will be lost. If you are unable to do this often enough from the mainline code, use the digi_recorder() callback to store the waveform into a larger buffer of your own. Note: many cards produce a click or popping sound when switching between record and playback modes, so it is often a good idea to discard the first buffer after you start a recording. The waveform is always stored in unsigned format, with stereo data consisting of alternate left/right samples. RETURN VALUE
The function will return non-zero if a buffer has been copied or zero if no new data is yet available (you were too fast checking the input). SEE ALSO
start_sound_input(3alleg4) Allegro version 4.4.2 read_sound_input(3alleg4)

Check Out this Related Man Page

read_sound_input(3alleg4)					  Allegro manual					 read_sound_input(3alleg4)

NAME
read_sound_input - Retrieves the last recorded audio buffer. Allegro game programming library. SYNOPSIS
#include <allegro.h> int read_sound_input(void *buffer); DESCRIPTION
Retrieves the most recently recorded audio buffer into the specified location. The buffer size can be obtained by checking the return value from start_sound_input(). You must be sure to call this function at regular intervals during the recording (typically around 100 times a second), or some data will be lost. If you are unable to do this often enough from the mainline code, use the digi_recorder() callback to store the waveform into a larger buffer of your own. Note: many cards produce a click or popping sound when switching between record and playback modes, so it is often a good idea to discard the first buffer after you start a recording. The waveform is always stored in unsigned format, with stereo data consisting of alternate left/right samples. RETURN VALUE
The function will return non-zero if a buffer has been copied or zero if no new data is yet available (you were too fast checking the input). SEE ALSO
start_sound_input(3alleg4) Allegro version 4.4.2 read_sound_input(3alleg4)
Man Page

3 More Discussions You Might Find Interesting

1. Programming

viutmp

Anybody got a good set of viutmp C code? Thanks. (1 Reply)
Discussion started by: lyonsd
1 Replies

2. UNIX for Dummies Questions & Answers

Extracting audio samples from raw file

Is there any way for me to read a raw audio file and save the samples data to a text file for further use in waveform generation? (1 Reply)
Discussion started by: sarvagya
1 Replies

3. Linux

Problem with playback of recorded videos

A few days ago, I barely knew what Linux was. But when I installed Linux Mint, Most of the stuff was wonderful; It was not the case of screen recording. I first wanted to record with OBS, using pretty good quality and with MP4 as output format. I recorded what I wanted to record, but when I saw... (1 Reply)
Discussion started by: Caloxeno
1 Replies