summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/snd/sndscan.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-02-25 15:47:51 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-02-25 15:47:51 (GMT)
commit52b38b795b0a60d5667a7396322f3d5128340c6d (patch)
tree3c059cead440796d53f56aa4df2fbf55db2c079f /Mac/Modules/snd/sndscan.py
parente742a82067c29786287ce8c6500b68220e9921de (diff)
downloadcpython-52b38b795b0a60d5667a7396322f3d5128340c6d.zip
cpython-52b38b795b0a60d5667a7396322f3d5128340c6d.tar.gz
cpython-52b38b795b0a60d5667a7396322f3d5128340c6d.tar.bz2
Support for sound input added. The interface is even worse than the
sound-output interface, so this needs a Python wrapper shortly.
Diffstat (limited to 'Mac/Modules/snd/sndscan.py')
-rw-r--r--Mac/Modules/snd/sndscan.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/Mac/Modules/snd/sndscan.py b/Mac/Modules/snd/sndscan.py
index af5ecbb..c7ca36b 100644
--- a/Mac/Modules/snd/sndscan.py
+++ b/Mac/Modules/snd/sndscan.py
@@ -43,16 +43,13 @@ class SoundScanner(Scanner):
'StartSound',
'StopSound',
'SoundDone',
- # These are soundMgr 3.0 routines that I can't seem to find...
- 'GetSoundPreference',
- 'SetSoundPreference',
- 'GetCompressionInfo',
- 'GetCompressionName',
- # Calls with void_ptr arguments (to be done).
+ # These do not work for cfm68k:
'SndGetInfo',
'SndSetInfo',
- 'SPBGetDeviceInfo',
- 'SPBSetDeviceInfo',
+ 'GetCompressionInfo',
+ 'GetCompressionName',
+ 'GetSoundPreference',
+ 'SetSoundPreference',
# And old calls that are no longer supported
'SetSoundVol',
'GetSoundVol',
@@ -72,7 +69,6 @@ class SoundScanner(Scanner):
"SoundComponentData_ptr",
"SoundConverter",
"ModalFilterUPP",
- "SPBPtr",
]
def makerepairinstructions(self):
@@ -116,6 +112,9 @@ class SoundScanner(Scanner):
([("StateBlockPtr", "inState", "InMode"), ("StateBlockPtr", "outState", "InMode")],
[("StateBlock", "state", "InOutMode")]),
+ # Catch-all for the last couple of void pointers
+ ([("void", "*", "OutMode")],
+ [("void_ptr", "*", "InMode")]),
]
if __name__ == "__main__":