projects
/
debian
/
gnuradio
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 3.2.2
[debian/gnuradio]
/
gr-gsm-fr-vocoder
/
src
/
python
/
encdec.py
diff --git
a/gr-gsm-fr-vocoder/src/python/encdec.py
b/gr-gsm-fr-vocoder/src/python/encdec.py
index ced1c5a91d4bc38f514bac669f04e9a448b80825..94e4e5b823af26224a3d0cbad9af047a2e85d117 100755
(executable)
--- a/
gr-gsm-fr-vocoder/src/python/encdec.py
+++ b/
gr-gsm-fr-vocoder/src/python/encdec.py
@@
-1,12
+1,12
@@
#!/usr/bin/env python
#
#!/usr/bin/env python
#
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005
,2007
Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version
2
, or (at your option)
+# the Free Software Foundation; either version
3
, or (at your option)
# any later version.
#
# GNU Radio is distributed in the hope that it will be useful,
# any later version.
#
# GNU Radio is distributed in the hope that it will be useful,
@@
-25,7
+25,7
@@
from gnuradio import audio
from gnuradio.vocoder import gsm_full_rate
def build_graph():
from gnuradio.vocoder import gsm_full_rate
def build_graph():
-
fg = gr.flow_graph
()
+
tb = gr.top_block
()
src = audio.source(8000)
src_scale = gr.multiply_const_ff(32767)
f2s = gr.float_to_short ()
src = audio.source(8000)
src_scale = gr.multiply_const_ff(32767)
f2s = gr.float_to_short ()
@@
-34,11
+34,11
@@
def build_graph():
s2f = gr.short_to_float ()
sink_scale = gr.multiply_const_ff(1.0/32767.)
sink = audio.sink(8000)
s2f = gr.short_to_float ()
sink_scale = gr.multiply_const_ff(1.0/32767.)
sink = audio.sink(8000)
-
fg
.connect(src, src_scale, f2s, enc, dec, s2f, sink_scale, sink)
- return
fg
+
tb
.connect(src, src_scale, f2s, enc, dec, s2f, sink_scale, sink)
+ return
tb
if __name__ == '__main__':
if __name__ == '__main__':
-
fg
= build_graph()
-
fg
.start()
+
tb
= build_graph()
+
tb
.start()
raw_input ('Press Enter to exit: ')
raw_input ('Press Enter to exit: ')
-
fg
.stop()
+
tb
.stop()