Hi
----------
L�hett�j�: Michael Cheng[SMTP:[EMAIL PROTECTED]]
L�hetetty: 5. elokuuta 1998 0:36
Vastaanottaja: [EMAIL PROTECTED]
Aihe: [MP3 ENCODER] some mp3 ideas and stuff
HI all,
some ideas that have floated my way on mp3 stuff
- a .mp3rc file with the 8hz-mp3 command line defaults in it. (so
you don't have to type in all the stuff all the time)
- aiff encoding is wanted by quite a few people
- a -n command line switch for setting niceness
Yes, this shouldn't be too hard to do, only thing is that how portable nice() is?
- an interesting request...
From: Hans-Petter Dalsklev <[EMAIL PROTECTED]>
Hi again. I was wondering, do you think it could be posible
to create a function in the mp3-encoder that can resume a mp3 that
wasn't finnished encoding?
Maybe we should make a CTRL/C interrupt handler, so that we can assure that full frame
is written to file (or whatever). After that it is possible to compare the source and
the mp3 file and continue where file was interrupted. Something like (in main.c)
int stop_reading = 0;
static void ctrl_c(int xx)
{
if (xx == SIGINT) {
fprintf(stderr,"\nGot interrupt\n");
}
stop_reading = 1;
}
static void handle_ctrl_c(void)
{
signal(SIGINT,ctrl_c);
}
add a call to handle_ctrl_c to main() and in main encoding loop just check if the
global variable is set...how portable is this?
I believe that this thing can be made without a handler (just figure out the last full
frame) but it is a nice fature if you want to encode only a part of file.
all for now
later
mike
- Lassi
application/ms-tnef