data = []
for x in range(per_cycle):
rad = float(x) / per_cycle * 2 * math.pi
y = 256 * int(volume * math.sin(rad))
data.extend([struct.pack('<i', y)] * 4)
data = []
for x in range(per_cycle):
rad = float(x) / per_cycle * 2 * math.pi
y = 256 * int(volume * math.sin(rad))
data.extend([struct.pack('<i', y)] * 4)