diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a4bf285 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: node_js +sudo: required +node_js: + - '6' + - '4' + - '0.12' + - '0.10' +before_install: + - sudo usermod -a -G audio travis + - sudo apt-get install -y libasound2-dev alsa-utils alsa-oss + + - echo 'pcm.!default {' > /home/travis/.asoundrc + - echo ' type hw' >> /home/travis/.asoundrc + - echo ' card 0' >> /home/travis/.asoundrc + - echo '}' >> /home/travis/.asoundrc + - echo '' >> /home/travis/.asoundrc + - echo 'ctl.!default {' >> /home/travis/.asoundrc + - echo ' type hw' >> /home/travis/.asoundrc + - echo ' card 0' >> /home/travis/.asoundrc + - echo '}' >> /home/travis/.asoundrc + + - chmod go+r /home/travis/.asoundrc + + - echo '# OSS/Free portion - card 1' | sudo tee -a /etc/modules.conf + - echo 'alias sound-slot-0 snd-card-0' | sudo tee -a /etc/modules.conf + - echo 'alias sound-service-0-0 snd-mixer-oss' | sudo tee -a /etc/modules.conf + - echo 'alias sound-service-0-1 snd-seq-oss' | sudo tee -a /etc/modules.conf + - echo 'alias sound-service-0-3 snd-pcm-oss' | sudo tee -a /etc/modules.conf + - echo 'alias sound-service-0-8 snd-seq-oss' | sudo tee -a /etc/modules.conf + - echo 'alias sound-service-0-12 snd-pcm-oss' | sudo tee -a /etc/modules.conf + + - sudo modprobe snd-dummy +script: + - sudo $(which node) node_modules/.bin/_mocha diff --git a/impl/linux.js b/impl/linux.js index 56e50a5..ac87422 100644 --- a/impl/linux.js +++ b/impl/linux.js @@ -29,6 +29,7 @@ var defaultDevice = function(cb) { if(err) { cb(err); } else { + console.log('DEFAULT DEVICE DATA', data) var res = reDefaultDevice.exec(data); if(res === null) { cb(new Error('Alsa Mixer Error: failed to parse output')); @@ -53,6 +54,7 @@ var getInfo = function (cb) { if(err) { cb(err); } else { + console.log('GET INFO DATA', data) var res = reInfo.exec(data); if(res === null) { cb(new Error('Alsa Mixer Error: failed to parse output'));