Re: Size limits on IWMWriter::WriteSample ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.