Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
50519c61
Commit
50519c61
authored
Oct 07, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
micro changes
parent
46e4b07a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
11 deletions
+10
-11
Demo/sgi/al/alwatch.py
Demo/sgi/al/alwatch.py
+1
-1
Demo/sgi/al/broadcast.py
Demo/sgi/al/broadcast.py
+1
-1
Demo/sgi/al/cmpaf.py
Demo/sgi/al/cmpaf.py
+3
-4
Demo/sgi/al/playaiff.py
Demo/sgi/al/playaiff.py
+1
-1
Demo/sgi/al/playold.py
Demo/sgi/al/playold.py
+1
-1
Demo/sgi/al/radio.py
Demo/sgi/al/radio.py
+1
-1
Demo/sgi/al/rec_play.py
Demo/sgi/al/rec_play.py
+1
-1
Demo/sgi/al/unicast.py
Demo/sgi/al/unicast.py
+1
-1
No files found.
Demo/sgi/al/alwatch.py
View file @
50519c61
...
...
@@ -10,7 +10,7 @@ params = al.queryparams(dev)
for
i
in
range
(
1
,
len
(
params
),
2
):
params
[
i
]
=
-
1
while
1
:
time
.
millisleep
(
100
)
time
.
sleep
(
0.1
)
old
=
params
[:]
al
.
getparams
(
dev
,
params
)
if
params
<>
old
:
...
...
Demo/sgi/al/broadcast.py
View file @
50519c61
#! /u
fs/guido/bin/sgi
/python
#! /u
sr/local/bin
/python
# broadcast [port]
#
...
...
Demo/sgi/al/cmpaf.py
View file @
50519c61
...
...
@@ -17,8 +17,8 @@ import AL
import
audioop
import
sys
class
Cmpaf
()
:
def
init
(
self
):
class
Cmpaf
:
def
__init__
(
self
):
parsetree
=
flp
.
parse_form
(
'cmpaf_form'
,
'form'
)
flp
.
create_full_form
(
self
,
parsetree
)
c
=
al
.
newconfig
()
...
...
@@ -29,7 +29,6 @@ class Cmpaf():
self
.
do_adpcm
=
self
.
do_ulaw
=
self
.
do_diff
=
0
self
.
acstate
=
None
self
.
form
.
show_form
(
FL
.
PLACE_SIZE
,
1
,
'compare audio formats'
)
return
self
def
run
(
self
):
while
1
:
...
...
@@ -61,5 +60,5 @@ class Cmpaf():
def
cb_diff
(
self
,
obj
,
val
):
self
.
do_diff
=
obj
.
get_button
()
cmpaf
=
Cmpaf
()
.
init
()
cmpaf
=
Cmpaf
()
cmpaf
.
run
()
Demo/sgi/al/playaiff.py
View file @
50519c61
...
...
@@ -49,6 +49,6 @@ def makeport(nchannels, sampwidth, samprate):
def
play
(
p
,
data
,
offset
,
blocksize
):
data
=
data
[
offset
:]
p
.
writesamps
(
data
)
while
p
.
getfilled
()
>
0
:
time
.
millisleep
(
10
)
while
p
.
getfilled
()
>
0
:
time
.
sleep
(
0.01
)
main
()
Demo/sgi/al/playold.py
View file @
50519c61
...
...
@@ -43,7 +43,7 @@ def main():
if
not
buf
:
break
port
.
writesamps
(
buf
)
while
port
.
getfilled
()
>
0
:
time
.
millisleep
(
100
)
time
.
sleep
(
0.1
)
try
:
main
()
...
...
Demo/sgi/al/radio.py
View file @
50519c61
#! /u
fs/guido/bin/sgi
/python
#! /u
sr/local/bin
/python
# radio [port]
#
...
...
Demo/sgi/al/rec_play.py
View file @
50519c61
...
...
@@ -20,7 +20,7 @@ def playit (buf) :
print
'playing...'
p
.
writesamps
(
buf
)
while
p
.
getfilled
()
>
0
:
time
.
millisleep
(
10
)
time
.
sleep
(
0.01
)
print
'done.'
p
.
closeport
()
...
...
Demo/sgi/al/unicast.py
View file @
50519c61
#! /u
fs/guido/bin/sgi
/python
#! /u
sr/local/bin
/python
# unicast host [port]
#
...
...
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