Skip to content

Commit

Permalink
add code to set default audio device
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiete Winter committed Dec 6, 2018
1 parent 2b8fcd2 commit f0823a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions linear_systems_II.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"source": [
"import tools\n",
"import numpy as np\n",
"import sounddevice as sd # for playback\n",
"import soundfile as sf # for reading a soundfile\n",
"from scipy import signal"
"from scipy import signal\n",
"\n",
"import sounddevice as sd # for playback\n",
"sd.default.device = 0 # set default device\n",
"sd.query_devices() # check if correct default device is set (PCH Analog ..)"
]
},
{
Expand Down

0 comments on commit f0823a7

Please sign in to comment.