From 2ac0f63707007de0e2f0b2617f6c96eefc78729b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 3 Oct 2014 14:03:37 +0200 Subject: New aiorecord/aioplay stub programs. --- src/aiorecord.cc | 2 +- src/device.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aiorecord.cc b/src/aiorecord.cc index 0a7a590..fefb859 100644 --- a/src/aiorecord.cc +++ b/src/aiorecord.cc @@ -236,7 +236,7 @@ int main(int argc, char *argv[]) } while(running && !feof(fp)) { - char pcm[1024]; + char pcm[2048]; size_t size = fread(pcm, 1, sizeof(pcm), fp); int err = sink->writeSamples(pcm, size); if(err < 0) { diff --git a/src/device.cc b/src/device.cc index e388c75..e5ffc03 100644 --- a/src/device.cc +++ b/src/device.cc @@ -235,7 +235,7 @@ Source *Device::getSource(std::string name, unsigned int samplerate, return NULL; } - snd_pcm_uframes_t frames = 512; + snd_pcm_uframes_t frames = 2048; if(pcm_init(handle, &samplerate, channels, &frames)) return NULL; return new Source(handle, samplerate, channels, frames); -- cgit v1.2.3