Skip to content

Commit 47d0137

Browse files
ioryknorth55
authored andcommitted
[respeaker_ros] Fixed bytes calculation 'self.n_channe - 2' -> '(self.n_channel - 2)'
1 parent 533dbfc commit 47d0137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

respeaker_ros/scripts/respeaker_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def __init__(self):
410410
self.pub_speech_audio_raw = rospy.Publisher(
411411
"speech_audio_raw", AudioData, queue_size=10)
412412
self.speech_raw_prefetch_bytes = int(
413-
self.n_channel - 2
413+
(self.n_channel - 2)
414414
* self.speech_prefetch
415415
* self.respeaker_audio.rate
416416
* self.respeaker_audio.bitdepth / 8.0)

0 commit comments

Comments
 (0)