[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] No pygame.mixer.Sound.get_current()?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] No pygame.mixer.Sound.get_current()?
- From: "Tyler Distad" <tyler.distad@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 22:51:54 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 29 Jul 2008 22:51:59 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Umd+SwgGHNgXqlXy3E9hhOKKUkNHaqwgQMuPXiZ+KrU=; b=Es2ZrNiA5OkU5i9gO79kOwTGZqbcErW4OcEb2o0+29KJ9VBy9srz+N+sqkgHEQqOju qYbEu6anoB2h/cWVGvyQh0o6GJlblQ0FNSYmKhG1hubM5Q+8MbsvIM4kb46hzykPvUTm wGKhhw+cc7GTzHCaswBtvq4cnDLUj+z3H86lo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ERWUm3/DWHHAPt4ovlwKFUXaEmGOEguPZahRtI/rc02Wd8SHiXYe3E1/e4bZ/j6tDj vEERj8MwNcDOpXKp50UydLcFMbhTAFvhxa+Yp3wcunpaORSJU9YI3JEGEMSNT9gJntjS fFJquG2bOLPFg7HMi302Cl5JGN3Edf21Dq3OY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
There is no function in pygame.mixer.Sound to return the current
position in the track. A get_length() function is available, so I
would assume that a get_current() position would be a simple addition.
Of course, I could be wrong. I looked at the code to see about adding
it, but in a few minutes of looking, was unable to easily find a
position marker.
Tyler Distad