IIRC there's an IEngineSound function to get the duration of a sound that
worked for me on MP3s though it could be a little fickle.  I remember that
for some reason the first time I called it on a file the length reported
would be correct but subsequent calls would be wrong.  Anyway you can use
that to figure out the end time when you start playing it and then manually
restart it when that time rolls around.  Variable bit-rate MP3's will
probably not work but I haven't used the duration function on an MP3 since
before the OB SDK was released so I don't know for sure.

On Sat, Feb 28, 2009 at 5:59 PM, Walter Gray <[email protected]> wrote:

> Hey again list,
>    A member of my team's been a little stumped on this, and I've done
> some quick checking around the wiki and hlcoders archives, but I've been
> unable to find anything on looping music, or more specifically looping
> .mp3 sound files.  Does anyone know of any good references or if it's
> even possible to loop .mp3s?
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to