Im experiencing some problems with winsound and tqdm. Im making an underground controlling system using the progress bar showing the distance between 2 stations and winsound playing the name of the station. The progress bar shows up but there is no sound.
from tqdm import tqdm
import time
import winsound
for i in tqdm(range(100)):
time.sleep(0.02)
winsound.PlaySound("Nastepna.wav", winsound.SND_ASYNC)
however when I do this:
from tqdm import tqdm
import time
import winsound
winsound.PlaySound("Nastepna.wav", winsound.SND_ASYNC)
for i in tqdm(range(100)):
time.sleep(0.02)
the sound plays with no problems.