Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Jun 17, 2019
1 parent 9eac031 commit 2e3b731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bouldercaves/synthplayer/soundapi/miniaudio.py
Expand Up @@ -48,7 +48,7 @@ def __init__(self, samplerate: int = 0, samplewidth: int = 0, nchannels: int = 0
3: miniaudio.ma_format_s24,
4: miniaudio.ma_format_s32
}[self.samplewidth]
buffersize_msec = self.nchannels * 1000 * self.frames_per_chunk // self.samplerate
buffersize_msec = 1000 * self.nchannels * self.frames_per_chunk // self.samplerate
self.mixed_chunks = self.mixer.chunks()
self.device = miniaudio.PlaybackDevice(ma_output_format, self.nchannels, self.samplerate, buffersize_msec)
stream = self.generator()
Expand Down

0 comments on commit 2e3b731

Please sign in to comment.