#include <audio_portaudio_source.h>
#include <gr_io_signature.h>
#include <gr_prefs.h>
#include <stdio.h>
#include <iostream>
#include <unistd.h>
#include <stdexcept>
#include <gri_portaudio.h>
#include <omnithread.h>
#include <cstring>
#include <string.h>

Defines | |
| #define | LOGGING 0 |
| #define | SAMPLE_FORMAT paFloat32 |
Typedefs | |
| typedef float | sample_t |
Functions | |
| int | portaudio_source_callback (const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *arg) |
| audio_portaudio_source_sptr | audio_portaudio_make_source (int sampling_rate, const std::string dev, bool ok_to_block) |
| #define LOGGING 0 |
| #define SAMPLE_FORMAT paFloat32 |
| typedef float sample_t |
| audio_portaudio_source_sptr audio_portaudio_make_source | ( | int | sampling_rate, | |
| const std::string | dev = "", |
|||
| bool | ok_to_block = true | |||
| ) |
audio source.
| sampling_rate | sampling rate in Hz | |
| dev | PORTAUDIO device name, e.g., "pa:" | |
| ok_to_block | true if it's ok for us to block |
| int portaudio_source_callback | ( | const void * | inputBuffer, | |
| void * | outputBuffer, | |||
| unsigned long | framesPerBuffer, | |||
| const PaStreamCallbackTimeInfo * | timeInfo, | |||
| PaStreamCallbackFlags | statusFlags, | |||
| void * | arg | |||
| ) |
References LOGGING.
1.5.5