24 May '13 - 12:37 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: inserting audio file into another problem  (Read 266 times)
jakob
Posts: 69


« on: 23 Aug '12 - 12:26 »
Reply with quoteQuote

hi
i have successfuly recorded directly into speex format using the BASS_Encode_Start and speexenc.exe.
i have also been able to insert a speex recording into the middle of another recording using the same approach and then use BASS_ChannelGetData in a loop to force data to the speexenc.exe generating a new speex file.
the problem is that it takes too long to use speexenc.exe because by using BASS_ChannelGetData i get the decoded data(guess it's PCM), that then will be encoded again by speexenc.exe.

earlier i did not use speex but instead PCM, and i could use BASS_Encode_Start with the BASS_ENCODE_PCM flag and call BASS_ChannelGetData in a loop to do insertion and it was very fast.

Isn't there a way to insert a recording into another, when both recordings are in speex format, without using speexenc.exe?

i'v tried alot of things, but nothing works. Hope somebody can help.

what i think i need, is a way to call BASS_StreamCreateFile without the BASS_STREAM_DECODE flag to load my speex file into a stream and then call BASS_ChannelGetData (to get speex data) so i can copy a part of the speex stream to a new file. Is this possible?
« Last Edit: 23 Aug '12 - 14:06 by jakob » Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #1 on: 23 Aug '12 - 16:52 »
Reply with quoteQuote

I'm not familiar with the Speex file format, so I'm not sure if it will allow files to be inserted into others, but I think that is unlikely. If you need to insert recordings into other recordings, then I think it would probably be best to stick with PCM for that, and then only encode the result once you are done inserting.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines