[Stk] RtWvOut and audio device on linux
Enrico Costanza
enrico.costanza@epfl.ch
Sat, 30 Jun 2007 09:36:39 +0200
Dear All,
I am trying to use the stk on kubuntu 7.04, and I am experiencing
problems with the real-time classes.
Here is a simple test program trying to allocate RtWvOut with the
default parameters, and its output.
---
#include <RtWvOut.h>
using std::cout;
using std::endl;
int main(){
RtWvOut * test = NULL;
cout << "about to alloc" << endl;
test = new RtWvOut( );
cout << "allocated" << endl;
delete test;
cout << "de-allocated" << endl;
return 0;
}
---
This is what I get:
---
about to alloc
RtApi: no devices found for given stream parameters:
RtApiAlsa: channels (1) not supported by device (hw:I82801CAICH3,0).
RtApiAlsa: pcm device (hw:I82801CAICH3,1) won't open: No such file
or directory.
RtApiAlsa: pcm device (hw:U0x4710x329,0) won't open: No such file or
directory.
terminate called after throwing an instance of 'StkError'
Aborted (core dumped)
---
At the same time, audio seems to work fine on my machine. For example I
can play wave files with aplay.
Am I doing something obviously stupid?
Any suggestions and pointers are welcome.
Thank you in advance.
Enrico