diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-25 15:47:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-25 15:47:51 (GMT) |
commit | 52b38b795b0a60d5667a7396322f3d5128340c6d (patch) | |
tree | 3c059cead440796d53f56aa4df2fbf55db2c079f /Mac/Modules/snd/sndscan.py | |
parent | e742a82067c29786287ce8c6500b68220e9921de (diff) | |
download | cpython-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.py | 17 |
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__": |