summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 14:03:37 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 14:03:37 +0200
commit2ac0f63707007de0e2f0b2617f6c96eefc78729b (patch)
tree2b379efe999b90b9ff356dd9104a37bcd5abca25
parentba2bdb8977e708903ba611331e4d14de420e45b9 (diff)
New aiorecord/aioplay stub programs.
-rw-r--r--src/aiorecord.cc2
-rw-r--r--src/device.cc2
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);