So you want to loop the entire file?  Not from the end back to the middle (what 
we support on waves)?  Or between two arbitrary points (more general looping)?

I'll have to double check, but I think we did hook up GetSoundDuration() for 
mp3s at some point :)  I'm pretty sure L4D has it actually (at least client 
side, maybe not server side), Orange Box probably does too.  So you could use 
that to loop entire files crudely by just re-triggering after the playtime has 
elapsed.

Jay



> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Christopher Harris
> Sent: Monday, March 02, 2009 7:45 PM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Looping .mp3 music
>
> If you link in FMod which is free for non-commercial you can
> loop mp3 among other things.
>
> Chris
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Ryan Sheffer
> Sent: Monday, March 02, 2009 10:29 PM
> To: Discussion of Half-Life Programming
> Subject: Re: [hlcoders] Looping .mp3 music
>
> I cant think of any other way cept loading your own sound library.
>
> Wanna hook up
>
>     // Just loads the file header and checks for duration
> (not hooked up for .mp3's yet)
>     // Is accessible to server and client though
>     virtual float GetSoundDuration( const char *pSample ) = 0;
>
> for us Jay? ;)
>
>
> On Sun, Mar 1, 2009 at 12:19 PM, Jay Stelly
> <[email protected]> wrote:
>
> > We don't support looping mp3 files.  You can loop PCM waves
> and ADPCM
> waves
> > though using CUE chunks or Sampler chunks to specify the
> loop point.
> > Lots of tools will write those chunks.
> >
> > > -----Original Message-----
> > > From: [email protected]
> > > [mailto:[email protected]] On
> Behalf Of ][akep
> > > nuxdie
> > > Sent: Sunday, March 01, 2009 7:16 AM
> > > To: Discussion of Half-Life Programming
> > > Subject: Re: [hlcoders] Looping .mp3 music
> > >
> > > maybe this will help you:
> > > http://www.interlopers.net/tutorials/27356
> > >
> > > On Sun, Mar 1, 2009 at 1:59 AM, 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
> > >
> > >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the
> list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>
> --
> ~Ryan ( skidz )
> _______________________________________________
> 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
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to