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
d7abed3b
Kaydet (Commit)
d7abed3b
authored
Agu 20, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of access statement
üst
3e065ada
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
31 deletions
+31
-31
aifc.py
Lib/aifc.py
+9
-9
audiodev.py
Lib/audiodev.py
+6
-6
sunau.py
Lib/sunau.py
+7
-7
wave.py
Lib/wave.py
+9
-9
No files found.
Lib/aifc.py
Dosyayı görüntüle @
d7abed3b
...
@@ -338,10 +338,10 @@ class Aifc_read:
...
@@ -338,10 +338,10 @@ class Aifc_read:
# _ssnd_chunk -- instantiation of a chunk class for the SSND chunk
# _ssnd_chunk -- instantiation of a chunk class for the SSND chunk
# _framesize -- size of one frame in the file
# _framesize -- size of one frame in the file
if
0
:
access
_file
,
_nchannels
,
_nframes
,
_sampwidth
,
_framerate
,
\
##
if 0: access _file, _nchannels, _nframes, _sampwidth, _framerate, \
_comptype
,
_compname
,
_markers
,
_soundpos
,
_version
,
\
##
_comptype, _compname, _markers, _soundpos, _version, \
_decomp
,
_comm_chunk_read
,
__aifc
,
_ssnd_seek_needed
,
\
##
_decomp, _comm_chunk_read, __aifc, _ssnd_seek_needed, \
_ssnd_chunk
,
_framesize
:
private
##
_ssnd_chunk, _framesize: private
def
initfp
(
self
,
file
):
def
initfp
(
self
,
file
):
self
.
_file
=
file
self
.
_file
=
file
...
@@ -502,7 +502,7 @@ class Aifc_read:
...
@@ -502,7 +502,7 @@ class Aifc_read:
#
#
# Internal methods.
# Internal methods.
#
#
if
0
:
access
*
:
private
##
if 0: access *: private
def
_decomp_data
(
self
,
data
):
def
_decomp_data
(
self
,
data
):
dummy
=
self
.
_decomp
.
SetParam
(
CL
.
FRAME_BUFFER_SIZE
,
dummy
=
self
.
_decomp
.
SetParam
(
CL
.
FRAME_BUFFER_SIZE
,
...
@@ -635,9 +635,9 @@ class Aifc_write:
...
@@ -635,9 +635,9 @@ class Aifc_write:
# _datalength -- the size of the audio samples written to the header
# _datalength -- the size of the audio samples written to the header
# _datawritten -- the size of the audio samples actually written
# _datawritten -- the size of the audio samples actually written
if
0
:
access
_file
,
_comptype
,
_compname
,
_nchannels
,
_sampwidth
,
\
##
if 0: access _file, _comptype, _compname, _nchannels, _sampwidth, \
_framerate
,
_nframes
,
_aifc
,
_version
,
_comp
,
\
##
_framerate, _nframes, _aifc, _version, _comp, \
_nframeswritten
,
_datalength
,
_datawritten
:
private
##
_nframeswritten, _datalength, _datawritten: private
def
__init__
(
self
,
f
):
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
if
type
(
f
)
==
type
(
''
):
...
@@ -829,7 +829,7 @@ class Aifc_write:
...
@@ -829,7 +829,7 @@ class Aifc_write:
#
#
# Internal methods.
# Internal methods.
#
#
if
0
:
access
*
:
private
##
if 0: access *: private
def
_comp_data
(
self
,
data
):
def
_comp_data
(
self
,
data
):
dum
=
self
.
_comp
.
SetParam
(
CL
.
FRAME_BUFFER_SIZE
,
len
(
data
))
dum
=
self
.
_comp
.
SetParam
(
CL
.
FRAME_BUFFER_SIZE
,
len
(
data
))
...
...
Lib/audiodev.py
Dosyayı görüntüle @
d7abed3b
...
@@ -2,9 +2,9 @@ error = 'audiodev.error'
...
@@ -2,9 +2,9 @@ error = 'audiodev.error'
class
Play_Audio_sgi
:
class
Play_Audio_sgi
:
# Private instance variables
# Private instance variables
if
0
:
access
frameratelist
,
nchannelslist
,
sampwidthlist
,
oldparams
,
\
##
if 0: access frameratelist, nchannelslist, sampwidthlist, oldparams, \
params
,
config
,
inited_outrate
,
inited_width
,
\
##
params, config, inited_outrate, inited_width, \
inited_nchannels
,
port
,
converter
,
classinited
:
private
##
inited_nchannels, port, converter, classinited: private
classinited
=
0
classinited
=
0
frameratelist
=
nchannelslist
=
sampwidthlist
=
None
frameratelist
=
nchannelslist
=
sampwidthlist
=
None
...
@@ -129,15 +129,15 @@ class Play_Audio_sgi:
...
@@ -129,15 +129,15 @@ class Play_Audio_sgi:
return
self
.
config
.
getqueuesize
()
return
self
.
config
.
getqueuesize
()
# private methods
# private methods
if
0
:
access
*
:
private
##
if 0: access *: private
def
ulaw2lin
(
self
,
data
):
def
ulaw2lin
(
self
,
data
):
import
audioop
import
audioop
return
audioop
.
ulaw2lin
(
data
,
2
)
return
audioop
.
ulaw2lin
(
data
,
2
)
class
Play_Audio_sun
:
class
Play_Audio_sun
:
if
0
:
access
outrate
,
sampwidth
,
nchannels
,
inited_outrate
,
inited_width
,
\
##
if 0: access outrate, sampwidth, nchannels, inited_outrate, inited_width, \
inited_nchannels
,
converter
:
private
##
inited_nchannels, converter: private
def
__init__
(
self
):
def
__init__
(
self
):
self
.
outrate
=
0
self
.
outrate
=
0
...
...
Lib/sunau.py
Dosyayı görüntüle @
d7abed3b
...
@@ -149,9 +149,9 @@ def _write_u32(file, x):
...
@@ -149,9 +149,9 @@ def _write_u32(file, x):
file
.
write
(
chr
(
int
(
data
[
i
])))
file
.
write
(
chr
(
int
(
data
[
i
])))
class
Au_read
:
class
Au_read
:
access
_file
,
_soundpos
,
_hdr_size
,
_data_size
,
_encoding
,
\
##
access _file, _soundpos, _hdr_size, _data_size, _encoding, \
_sampwidth
,
_framesize
,
_framerate
,
_nchannels
,
\
##
_sampwidth, _framesize, _framerate, _nchannels, \
_info
:
private
##
_info: private
def
__init__
(
self
,
f
):
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
if
type
(
f
)
==
type
(
''
):
...
@@ -280,9 +280,9 @@ class Au_read:
...
@@ -280,9 +280,9 @@ class Au_read:
self
.
_file
=
None
self
.
_file
=
None
class
Au_write
:
class
Au_write
:
access
_file
,
_framerate
,
_nchannels
,
_sampwidth
,
_framesize
,
\
##
access _file, _framerate, _nchannels, _sampwidth, _framesize, \
_nframes
,
_nframeswritten
,
_datawritten
,
_info
,
\
##
_nframes, _nframeswritten, _datawritten, _info, \
_comptype
:
private
##
_comptype: private
def
__init__
(
self
,
f
):
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
if
type
(
f
)
==
type
(
''
):
...
@@ -410,7 +410,7 @@ class Au_write:
...
@@ -410,7 +410,7 @@ class Au_write:
#
#
# private methods
# private methods
#
#
if
0
:
access
*
:
private
##
if 0: access *: private
def
_ensure_header_written
(
self
):
def
_ensure_header_written
(
self
):
if
not
self
.
_nframeswritten
:
if
not
self
.
_nframeswritten
:
...
...
Lib/wave.py
Dosyayı görüntüle @
d7abed3b
...
@@ -190,10 +190,10 @@ class Wave_read:
...
@@ -190,10 +190,10 @@ class Wave_read:
# _data_chunk -- instantiation of a chunk class for the DATA chunk
# _data_chunk -- instantiation of a chunk class for the DATA chunk
# _framesize -- size of one frame in the file
# _framesize -- size of one frame in the file
access
_file
,
_nchannels
,
_nframes
,
_sampwidth
,
_framerate
,
\
##
access _file, _nchannels, _nframes, _sampwidth, _framerate, \
_comptype
,
_compname
,
_soundpos
,
\
##
_comptype, _compname, _soundpos, \
_fmt_chunk_read
,
_data_seek_needed
,
\
##
_fmt_chunk_read, _data_seek_needed, \
_data_chunk
,
_framesize
:
private
##
_data_chunk, _framesize: private
def
initfp
(
self
,
file
):
def
initfp
(
self
,
file
):
self
.
_file
=
file
self
.
_file
=
file
...
@@ -321,7 +321,7 @@ class Wave_read:
...
@@ -321,7 +321,7 @@ class Wave_read:
#
#
# Internal methods.
# Internal methods.
#
#
access
*
:
private
##
access *: private
def
_read_fmt_chunk
(
self
,
chunk
):
def
_read_fmt_chunk
(
self
,
chunk
):
wFormatTag
=
_read_short
(
chunk
)
wFormatTag
=
_read_short
(
chunk
)
...
@@ -362,9 +362,9 @@ class Wave_write:
...
@@ -362,9 +362,9 @@ class Wave_write:
# _nframeswritten -- the number of frames actually written
# _nframeswritten -- the number of frames actually written
# _datawritten -- the size of the audio samples actually written
# _datawritten -- the size of the audio samples actually written
access
_file
,
_comptype
,
_compname
,
_nchannels
,
_sampwidth
,
\
##
access _file, _comptype, _compname, _nchannels, _sampwidth, \
_framerate
,
_nframes
,
_nframeswritten
,
\
##
_framerate, _nframes, _nframeswritten, \
_datalength
,
_datawritten
:
private
##
_datalength, _datawritten: private
def
__init__
(
self
,
f
):
def
__init__
(
self
,
f
):
if
type
(
f
)
==
type
(
''
):
if
type
(
f
)
==
type
(
''
):
...
@@ -505,7 +505,7 @@ class Wave_write:
...
@@ -505,7 +505,7 @@ class Wave_write:
#
#
# Internal methods.
# Internal methods.
#
#
access
*
:
private
##
access *: private
def
_ensure_header_written
(
self
,
datasize
):
def
_ensure_header_written
(
self
,
datasize
):
if
not
self
.
_datawritten
:
if
not
self
.
_datawritten
:
...
...
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