summarylogtreecommitdiffstats
path: root/pulse.patch
blob: e97caf42b3ad62346a28e8d882958b6d26211c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- chuck-1.5.2.0/src/host/RtAudio/RtAudio.cpp
+++ chuck-1.5.2.0/src/host/RtAudio/RtAudio.cpp
@@ -5663,7 +5663,7 @@
         if ( result < 0 ) break;
         if ( subdevice < 0 ) break;
         if ( nDevices == device ) {
-          sprintf( name, "hw:%d,%d", card, subdevice );
+          sprintf( name, "pulse" );
           snd_ctl_close( chandle );
           goto foundDevice;
         }
@@ -5711,6 +5711,7 @@
 
   snd_pcm_t *phandle;
   int openMode = SND_PCM_ASYNC;
+  printf( "pcm name %s\n", name );
   result = snd_pcm_open( &phandle, name, stream, openMode );
   if ( result < 0 ) {
     if ( mode == OUTPUT )