Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5674e4ec
Kaydet (Commit)
5674e4ec
authored
Agu 01, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
NumVersion stuff has changed
üst
d1f06313
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
47 deletions
+8
-47
Sndmodule.c
Mac/Modules/snd/Sndmodule.c
+8
-28
sndsupport.py
Mac/Modules/snd/sndsupport.py
+0
-19
No files found.
Mac/Modules/snd/Sndmodule.c
Dosyayı görüntüle @
5674e4ec
...
...
@@ -40,9 +40,6 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Sound.h>
...
...
@@ -78,23 +75,6 @@ SndCmd_Convert(PyObject *v, SndCommand *pc)
return
PyArg_Parse
(
v
,
"h"
,
&
pc
->
cmd
);
}
/* Create a NumVersion object (a quintuple of integers) */
static
PyObject
*
NumVer_New
(
NumVersion
nv
)
{
return
Py_BuildValue
(
"iiiii"
,
nv
.
majorRev
,
#ifdef THINK_C
nv
.
minorRev
,
nv
.
bugFixRev
,
#else
(
nv
.
minorAndBugRev
>>
4
)
&
0xf
,
nv
.
minorAndBugRev
&
0xf
,
#endif
nv
.
stage
,
nv
.
nonRelRev
);
}
static
pascal
void
SndCh_UserRoutine
(
SndChannelPtr
chan
,
SndCommand
*
cmd
);
/* Forward */
static
PyObject
*
Snd_Error
;
...
...
@@ -426,12 +406,12 @@ static PyObject *Snd_SndSoundManagerVersion(_self, _args)
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
long
_rv
;
NumVersion
_rv
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
SndSoundManagerVersion
();
_res
=
Py_BuildValue
(
"
l
"
,
_rv
);
_res
=
Py_BuildValue
(
"
O&
"
,
PyMac_BuildNumVersion
,
_rv
);
return
_res
;
}
...
...
@@ -491,12 +471,12 @@ static PyObject *Snd_MACEVersion(_self, _args)
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
long
_rv
;
NumVersion
_rv
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
MACEVersion
();
_res
=
Py_BuildValue
(
"
l
"
,
_rv
);
_res
=
Py_BuildValue
(
"
O&
"
,
PyMac_BuildNumVersion
,
_rv
);
return
_res
;
}
...
...
@@ -771,7 +751,7 @@ static PyMethodDef Snd_methods[] = {
{
"SndControl"
,
(
PyCFunction
)
Snd_SndControl
,
1
,
"(short id) -> (SndCommand cmd)"
},
{
"SndSoundManagerVersion"
,
(
PyCFunction
)
Snd_SndSoundManagerVersion
,
1
,
"() -> (
long
_rv)"
},
"() -> (
NumVersion
_rv)"
},
{
"SndManagerStatus"
,
(
PyCFunction
)
Snd_SndManagerStatus
,
1
,
"(short theLength) -> (SMStatus theStatus)"
},
{
"SndGetSysBeepState"
,
(
PyCFunction
)
Snd_SndGetSysBeepState
,
1
,
...
...
@@ -779,7 +759,7 @@ static PyMethodDef Snd_methods[] = {
{
"SndSetSysBeepState"
,
(
PyCFunction
)
Snd_SndSetSysBeepState
,
1
,
"(short sysBeepState) -> None"
},
{
"MACEVersion"
,
(
PyCFunction
)
Snd_MACEVersion
,
1
,
"() -> (
long
_rv)"
},
"() -> (
NumVersion
_rv)"
},
{
"Comp3to1"
,
(
PyCFunction
)
Snd_Comp3to1
,
1
,
"(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"
},
{
"Exp1to3"
,
(
PyCFunction
)
Snd_Exp1to3
,
1
,
...
...
Mac/Modules/snd/sndsupport.py
Dosyayı görüntüle @
5674e4ec
...
...
@@ -79,8 +79,6 @@ SndCallBackUPP = SndCallBackProcPtr
SndCompletionProcPtr
=
FakeType
(
'(SndCompletionProcPtr)0'
)
# XXX
SndCompletionUPP
=
SndCompletionProcPtr
NumVersion
=
OpaqueByValueType
(
'NumVersion'
,
'NumVer'
)
##InOutBuf128 = FixedInputOutputBufferType(128)
StateBlock
=
StructInputOutputBufferType
(
'StateBlock'
)
...
...
@@ -119,23 +117,6 @@ SndCmd_Convert(PyObject *v, SndCommand *pc)
return PyArg_Parse(v, "h", &pc->cmd);
}
/* Create a NumVersion object (a quintuple of integers) */
static PyObject *
NumVer_New(NumVersion nv)
{
return Py_BuildValue("iiiii",
nv.majorRev,
#ifdef THINK_C
nv.minorRev,
nv.bugFixRev,
#else
(nv.minorAndBugRev>>4) & 0xf,
nv.minorAndBugRev & 0xf,
#endif
nv.stage,
nv.nonRelRev);
}
static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment