Skip to content
Snippets Groups Projects
Commit c1b0dec0 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

default alsa plugin for capture : surround40 ....

parent 06c97dcc
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ AudioLayer::openDevice (int indexIn, int indexOut, int sampleRate, int frameSize
ost::MutexLock lock( _mutex );
std::string pcmp = buildDeviceTopo( plugin , indexOut , 0);
std::string pcmc = buildDeviceTopo( PCM_PLUGHW , indexIn , 0);
std::string pcmc = buildDeviceTopo( PCM_SURROUND40 , indexIn , 0);
return open_device( pcmp , pcmc , stream);
}
......@@ -498,7 +498,7 @@ AudioLayer::buildDeviceTopo( std::string plugin, int card, int subdevice )
{
std::string pcm = plugin;
std::stringstream ss,ss1;
if( pcm == "default")
if( pcm == "default" || pcm == "pulse")
return pcm;
ss << card;
pcm.append(":");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment