Author Topic: Pause encoding and continue after application relaunch  (Read 630 times)

ChristianK

  • Posts: 5
Hi,
is it possible to pause encoding and continue after relaunching the application?
I know that there is the BASS_Encode_SetPaused function that can be used to pause encoding, but I couldn't find a way to restore the encoder handle after relaunching.
« Last Edit: 24 Sep '11 - 21:45 by ChristianK »

Ian @ un4seen

  • Administrator
  • Posts: 20437
No, I'm afraid that isn't currently possible. What format are you encoding in? If MP3, you could use an ENCODEPROC callback function to receive the encoded data and write it to a file yourself, which would allow you to append it to an existing file. If you're writing a WAV file, then you could implement that yourself instead of using BASSenc (see the WRITEWAV example for pointers).

ChristianK

  • Posts: 5
Thanks for your reply. I'm encoding in AAC (Core Audio), so I guess appending data to the file won't work.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Appending should work with AAC too, so long as it is in ADTS form (rather than an MP4 container), ie. use "adts" (rather than "mp4f") in the BASS_Encode_StartCA call.