File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : node_js
2
+ sudo : required
3
+ node_js :
4
+ - ' 6'
5
+ - ' 4'
6
+ - ' 0.12'
7
+ - ' 0.10'
8
+ before_install :
9
+ - sudo usermod -a -G audio travis
10
+ - sudo apt-get install -y libasound2-dev alsa-utils alsa-oss
11
+
12
+ - echo 'pcm.!default {' > /home/travis/.asoundrc
13
+ - echo ' type hw' >> /home/travis/.asoundrc
14
+ - echo ' card 0' >> /home/travis/.asoundrc
15
+ - echo '}' >> /home/travis/.asoundrc
16
+ - echo '' >> /home/travis/.asoundrc
17
+ - echo 'ctl.!default {' >> /home/travis/.asoundrc
18
+ - echo ' type hw' >> /home/travis/.asoundrc
19
+ - echo ' card 0' >> /home/travis/.asoundrc
20
+ - echo '}' >> /home/travis/.asoundrc
21
+
22
+ - chmod go+r /home/travis/.asoundrc
23
+
24
+ - echo '# OSS/Free portion - card 1' | sudo tee -a /etc/modules.conf
25
+ - echo 'alias sound-slot-0 snd-card-0' | sudo tee -a /etc/modules.conf
26
+ - echo 'alias sound-service-0-0 snd-mixer-oss' | sudo tee -a /etc/modules.conf
27
+ - echo 'alias sound-service-0-1 snd-seq-oss' | sudo tee -a /etc/modules.conf
28
+ - echo 'alias sound-service-0-3 snd-pcm-oss' | sudo tee -a /etc/modules.conf
29
+ - echo 'alias sound-service-0-8 snd-seq-oss' | sudo tee -a /etc/modules.conf
30
+ - echo 'alias sound-service-0-12 snd-pcm-oss' | sudo tee -a /etc/modules.conf
31
+
32
+ - sudo modprobe snd-dummy
33
+ script :
34
+ - sudo --preserve-env node node_modules/.bin/_mocha
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ var defaultDevice = function(cb) {
29
29
if ( err ) {
30
30
cb ( err ) ;
31
31
} else {
32
+ console . log ( 'DEFAULT DEVICE DATA' , data )
32
33
var res = reDefaultDevice . exec ( data ) ;
33
34
if ( res === null ) {
34
35
cb ( new Error ( 'Alsa Mixer Error: failed to parse output' ) ) ;
@@ -53,6 +54,7 @@ var getInfo = function (cb) {
53
54
if ( err ) {
54
55
cb ( err ) ;
55
56
} else {
57
+ console . log ( 'GET INFO DATA' , data )
56
58
var res = reInfo . exec ( data ) ;
57
59
if ( res === null ) {
58
60
cb ( new Error ( 'Alsa Mixer Error: failed to parse output' ) ) ;
You can’t perform that action at this time.
0 commit comments