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
9a568eb2
Kaydet (Commit)
9a568eb2
authored
Kas 30, 2002
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
üst
97708bc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ossaudiodev.c
Modules/ossaudiodev.c
+7
-7
No files found.
Modules/ossaudiodev.c
Dosyayı görüntüle @
9a568eb2
...
@@ -87,7 +87,7 @@ newladobject(PyObject *arg)
...
@@ -87,7 +87,7 @@ newladobject(PyObject *arg)
char
*
basedev
=
NULL
;
char
*
basedev
=
NULL
;
char
*
mode
=
NULL
;
char
*
mode
=
NULL
;
/* Two ways to call
linuxaudiodev.
open():
/* Two ways to call open():
open(device, mode) (for consistency with builtin open())
open(device, mode) (for consistency with builtin open())
open(mode) (for backwards compatibility)
open(mode) (for backwards compatibility)
because the *first* argument is optional, parsing args is
because the *first* argument is optional, parsing args is
...
@@ -607,7 +607,7 @@ lad_getattr(lad_t *xp, char *name)
...
@@ -607,7 +607,7 @@ lad_getattr(lad_t *xp, char *name)
static
PyTypeObject
Ladtype
=
{
static
PyTypeObject
Ladtype
=
{
PyObject_HEAD_INIT
(
&
PyType_Type
)
PyObject_HEAD_INIT
(
&
PyType_Type
)
0
,
/*ob_size*/
0
,
/*ob_size*/
"
linuxaudiodev.linux
_audio_device"
,
/*tp_name*/
"
ossaudiodev.oss
_audio_device"
,
/*tp_name*/
sizeof
(
lad_t
),
/*tp_size*/
sizeof
(
lad_t
),
/*tp_size*/
0
,
/*tp_itemsize*/
0
,
/*tp_itemsize*/
/* methods */
/* methods */
...
@@ -620,13 +620,13 @@ static PyTypeObject Ladtype = {
...
@@ -620,13 +620,13 @@ static PyTypeObject Ladtype = {
};
};
static
PyObject
*
static
PyObject
*
lad
open
(
PyObject
*
self
,
PyObject
*
args
)
oss
open
(
PyObject
*
self
,
PyObject
*
args
)
{
{
return
(
PyObject
*
)
newladobject
(
args
);
return
(
PyObject
*
)
newladobject
(
args
);
}
}
static
PyMethodDef
linux
audiodev_methods
[]
=
{
static
PyMethodDef
oss
audiodev_methods
[]
=
{
{
"open"
,
lad
open
,
METH_VARARGS
},
{
"open"
,
oss
open
,
METH_VARARGS
},
{
0
,
0
},
{
0
,
0
},
};
};
...
@@ -635,11 +635,11 @@ static PyMethodDef linuxaudiodev_methods[] = {
...
@@ -635,11 +635,11 @@ static PyMethodDef linuxaudiodev_methods[] = {
if (PyModule_AddIntConstant(mod, #name, (long) (name)) == -1) return;
if (PyModule_AddIntConstant(mod, #name, (long) (name)) == -1) return;
void
void
init
linux
audiodev
(
void
)
init
oss
audiodev
(
void
)
{
{
PyObject
*
m
;
PyObject
*
m
;
m
=
Py_InitModule
(
"
linuxaudiodev"
,
linux
audiodev_methods
);
m
=
Py_InitModule
(
"
ossaudiodev"
,
oss
audiodev_methods
);
OSSAudioError
=
PyErr_NewException
(
"ossaudiodev.error"
,
NULL
,
NULL
);
OSSAudioError
=
PyErr_NewException
(
"ossaudiodev.error"
,
NULL
,
NULL
);
if
(
OSSAudioError
)
if
(
OSSAudioError
)
...
...
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