Re: ACM Convert - acmStreamOpen return 512
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 10 Apr 2007 09:31:10 -0700
On Apr 10, 2:26?pm, "esselte" <vincent....@xxxxxxxxx> wrote:
I have found that sometimes it takes two steps.
PCM / 44.1 KHz -> PCM / 8KKHz
and then
PCM / 8KHz -> X / 8KHz
Do I have to go this way
Yes
or it is possible to convert file from pcm to
gsm610 in one step?
Only if the sample rates are the same, otherwise - No
If it takes 2 steps, which is the second?
PCM to compressed or compressed to PCM _must_ be at the same sample
rate.
So going PCM to GSM at different sample rates
Step 1 PCM original rate to PCM at compressed rate
Step 2 PCM at compressed rate to compressed format
And going from GSM to PCM at different rates
Step 1 GSM to PCM at compressed rate
Step 2 PCM at compressed rate to PCM at final rate
But you don't need to get it to a file at the intermediate PCM format.
If you choose your buffer sizes appropriately you can (for PCM to
GSM)...
1 Fill PCM buffer A at original rate from file
2 Transform to PCM buffer B at compressed rate
3 Convert to GSM buffer C at compressed rate
4 Save to file as GSM
5 if not eof go to 1
Calculate the buffers (or use acm StreamSize) so that a full input
buffer transforms and converts to a full buffer all the way through.
That way you don't have to do "remainder shuffling" on each buffer.
Alan Lloyd
.
- Follow-Ups:
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- References:
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- From: Chris P.
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- From: Chris P.
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- From: Alessandro Angeli
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- From: Chris P.
- Re: ACM Convert - acmStreamOpen return 512
- From: esselte
- Re: ACM Convert - acmStreamOpen return 512
- Prev by Date: Re: ACM Convert - acmStreamOpen return 512
- Next by Date: In Vista, how to redirect audio-in, audio-out to specific microphone and speakers instead of the default ones?
- Previous by thread: Re: ACM Convert - acmStreamOpen return 512
- Next by thread: Re: ACM Convert - acmStreamOpen return 512
- Index(es):
Relevant Pages
|