Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getnchannels
Method
getnchannels
Lib/wave.py:501–504 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
499
self._nchannels = nchannels
500
501
def
getnchannels(self):
502
if
not self._nchannels:
503
raise
Error(
'number of channels not set'
)
504
return
self._nchannels
505
506
def
setsampwidth(self, sampwidth):
507
if
self._datawritten:
Callers
nothing calls this directly
Calls
1
Error
Class · 0.70
Tested by
no test coverage detected