PDA

View Full Version : suggestion for Project-ZS 1.0


treech
09-25-2002, 11:11 AM
OGG support would be nice, i'll paste some simple example code:

void Oggtag(FILE *fp)
{
OggVorbis_File vf;
double duration;
long bitrate;

if ( ov_open (fp, &vf, NULL, 0 ) != 0 )
printf("Something went wrong!\n");

duration = ov_time_total ( &vf, -1 );
bitrate = ov_bitrate ( &vf, -1 ) / 1000;

{
char **ptr = ov_comment(&vf,-1)->user_comments;
vorbis_info *vi = ov_info(&vf,-1);
printf("\n\nBitstream is %d channel, %ldHz\n",vi->channels,vi->rate);
printf("Encoded by: %s\n\n",ov_comment(&vf,-1)->vendor);
printf("Bitrate: %d Kbit/Sec\n", bitrate);
printf("Duration: %.0f Seconds\n", duration);
printf("\n\t---------- Vorbis Tag: ----------\n\n");

while(*ptr)
{
printf("%s\n",*ptr);
++ptr;
}
}
ov_clear (&vf);
}

very simple, you will of course need the ogg/vorbis/vorbisfile libraries install. (and link to the libraries, -lvorbisfile -lvorbis)

phrode
09-26-2002, 04:45 AM
Yes ogg support would be very very nice. :D

darkone
09-27-2002, 06:20 AM
Thanks, this will be most certainly implemented. I dont like the idea of using external libraries, but it might be the only way to implement ogg support with reasonable effort.

GOD-EMPEROR
09-28-2002, 02:13 AM
just a small ? about ogg...... who the hell uses it?

Phaeton
09-30-2002, 06:01 PM
ge, i dont think any rls groups use it but i sure as hell grab them when i come across them

FTPServerTools
10-02-2002, 03:06 AM
External DLL plugins? That would be awesome!!

How about the ability to have a Pre-command and Post-command
for ANY command (whether it is ok or not) type???