Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem with pyaudio overflows on OSX #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audio spectrum_pt1_waveform_viewer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"while True:\n",
" \n",
" # binary data\n",
" data = stream.read(CHUNK) \n",
" data = stream.read(CHUNK, exception_on_overflow = False)\n",
" \n",
" # convert data to integers, make np array, then offset it by 127\n",
" data_int = struct.unpack(str(2 * CHUNK) + 'B', data)\n",
Expand Down
2 changes: 1 addition & 1 deletion audio spectrum_pt2_spectrum_analyzer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"while True:\n",
" \n",
" # binary data\n",
" data = stream.read(CHUNK) \n",
" data = stream.read(CHUNK, exception_on_overflow = False)\n",
"\n",
" data_np = np.frombuffer(data, dtype='h')\n",
" \n",
Expand Down