⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radio.py

📁 reduced python source for embedded apps
💻 PY
字号:
#! /usr/bin/env python# radio [port]## Receive audio packets broadcast by "broadcast.py" on another SGI machine.# Use apanel to set the output sampling rate to match that of the broadcast.import sys, alfrom socket import *port = 5555if sys.argv[1:]: port = eval(sys.argv[1])s = socket(AF_INET, SOCK_DGRAM)s.bind('', port)p = al.openport('radio', 'w')while 1:	data = s.recv(1400)	p.writesamps(data)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -