Hi …
Am a newbie of sdl_mixer1.2.7,
i wanted to know how to get the length of a sample in millisecond…
Is there any function to get this…
Regards
Lijith
Hi …
Am a newbie of sdl_mixer1.2.7,
i wanted to know how to get the length of a sample in millisecond…
Is there any function to get this…
Regards
Lijith
Hi,
El Jueves, 18 de Enero de 2007 11:05, Lijith P escribi?:
i wanted to know how to ?get the length of a sample in millisecond…
Is there any function to get this…
I don’t think so, but you can try:
milliseconds = (wave’s data lenght in bytes) / ( samplerate * channels *
sizeof(sample)) * 1000
Where
HTH
Alberto