Re: Size limits on IWMWriter::WriteSample ?
- From: Dan <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 18:25:01 -0700
Hi,
Thanks for the prompt response !
> What happens if you simply break your sample into smaller ones? I think
> this should work.
I did exactly as you suggested (and set up a loop that writes no more than 1
second of audio data each iteration) and everything works great. But - I'm
concerned why certain data sizes don't work ... if there is a legitimate
reason for this, then I would like to know so that I can code around the
problem !
Also, another issue that I'm having - my application will enumerate all the
Windows Media codecs and all the formats in a search to find the best format
to use. Is this the best policy to use ... because what happens if new
codecs appear that are not suitable for generic wavefile data (i.e not voice
samples) ? I already noticed that if choose to encode a VBR 22KHz 16bit
mono PCM file - I end up getting the Windows Media Series 9 Voice encoder -
which I don't want ! I guess I can check for this case and avoid it - but I
would be interested about what kind of polices developers are using to limit
(or not) the choice of encoders that might be used.
Thanks,
Dan
.
- Follow-Ups:
- Re: Size limits on IWMWriter::WriteSample ?
- From: Becky Weiss [MS]
- Re: Size limits on IWMWriter::WriteSample ?
- References:
- Size limits on IWMWriter::WriteSample ?
- From: Dan
- Re: Size limits on IWMWriter::WriteSample ?
- From: sasha
- Size limits on IWMWriter::WriteSample ?
- Prev by Date: Re: Extract first frame from a WMV file
- Next by Date: Re: Crop/Strech
- Previous by thread: Re: Size limits on IWMWriter::WriteSample ?
- Next by thread: Re: Size limits on IWMWriter::WriteSample ?
- Index(es):