summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 10:34:48 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-10-03 10:34:48 +0200
commitd6dfd7597f5d1339430400112db61b6e432dcd25 (patch)
tree778ce931ed7596f854b65c90e7a9833f6088bb69 /src
parent9fb87cfad5374f8122a8a340e61a4c2b0c8711db (diff)
New aiorecord/aioplay stub programs.
Diffstat (limited to 'src')
-rw-r--r--src/aiorecord.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/aiorecord.cc b/src/aiorecord.cc
index 6132496..cfcc392 100644
--- a/src/aiorecord.cc
+++ b/src/aiorecord.cc
@@ -64,6 +64,7 @@ int main(int argc, char *argv[])
std::string file = "/dev/stdout";
int samplerate = 48000;
int channels = 2;
+ bool list = false;
int c;
int option_index = 0;
@@ -122,9 +123,13 @@ int main(int argc, char *argv[])
}
}
+ if(list) {
+ // TODO
+ }
+
Device dev(device);
- Source *src = dev.getSource(device);
+ Source *src = dev.getSource(device, samplerate, channels);
if(!src) {
printf("Could not find source device: %s\n", device.c_str());
}