Unless I figure it out soon the program I'm working on is going to be doomed to having an intermediate uncompressed wav outputted halfway through the process which does not = good when the length could be anywhere from a minute to 2 and a half hours or more.
someone with in depth programming skillz:
- RadicalEd0
- Joined: Mon Jun 24, 2002 2:58 pm
someone with in depth programming skillz:
you know besweet? yeah, you do. How did dspguru engineer it to transcode without intermediate files, specifically wavs?
Unless I figure it out soon the program I'm working on is going to be doomed to having an intermediate uncompressed wav outputted halfway through the process which does not = good when the length could be anywhere from a minute to 2 and a half hours or more.
Unless I figure it out soon the program I'm working on is going to be doomed to having an intermediate uncompressed wav outputted halfway through the process which does not = good when the length could be anywhere from a minute to 2 and a half hours or more.
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
- RadicalEd0
- Joined: Mon Jun 24, 2002 2:58 pm
let me clarify, since klinky had a problem with my original question, for it was merely an example
how can one program something to output a wav and directly feed it to the next program without actually creating a file and using up hdd space
how can one program something to output a wav and directly feed it to the next program without actually creating a file and using up hdd space
NMEAMV: PENIS
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
NMEAMV: IN
NMEAMV: YO
NMEAMV: MIXED
NMEAMV: DRINK
-
trythil
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????
You can use a circular buffer, using threads. Have one process fill the buffer, and have the second process continually read from the buffer (until it's empty, and then wait for data to appear in the buffer, and so on). Any platform with a decent threading API will let you do this.RadicalEd0 wrote:let me clarify, since klinky had a problem with my original question, for it was merely an example
how can one program something to output a wav and directly feed it to the next program without actually creating a file and using up hdd space
I have C++ source code for a circular buffer template using the Boost::Threads API. It won't exactly be what you're looking for, but if you're interested, I can dig it up.
There are other ways to pipe data between processes. For example, under UNIX, you can use pipes, like:
Code: Select all
tccat -i /dev/cdroms/cdrom0 -T 1,-1 | tcdemux -a 0 | split -b 1024m - aa
- klinky
- Joined: Mon Jul 23, 2001 12:23 am
- Location: Cookie College...
- Contact: