none
MediaFormat.Resample kinda doesn't work (PPTv14) RRS feed

  • Question

  • Well, let me explain. It does work, it just doesn't match the client interface when using Trim. Here's my input audio file:

    AudioCompressionType: {00000161-0000-0010-8000-00AA00389B71}
    AudioSamplingRate: 44100
    StartPoint: 734
    EndPoint: 1152
    Volume: 0.8
    IsEmbedded: True
    Length: 2136

    And here it is after I've done a resample of Trim = True:

    AudioCompressionType: {00000161-0000-0010-8000-00AA00389B71}
    AudioSamplingRate: 44100
    StartPoint: 0
    EndPoint: 429
    Volume: 0.8
    IsEmbedded: True
    Length: 429

    First of all, the length of the resampled one should be 418, not 429. That's a buffer of 0011 milliseconds that has been added. Secondly, and this is the most important, the sound at the end of my resampled file is completely cut off. The word said is "pig", but it only comes out as "pi". However, in the normal trim before resampling, the word is pronounced correctly.

    I have uploaded a PPTX to DropBox that demonstrates this. Here's the link to download the PPTX.

    Having accuracy is important to my program - given the different experiences, all I need to know is what are the rules around trim for both client and VBA side (e.g. a buffer of 100 milliseconds is always added to the end of the client-side trim, if that is true. Just need the accurate one). That may include buffers, frames, rounding, etc.

    To further illustrate the client-side issue, you can set the start time 0 and the end time to 0.987 and it will work. However, if you set the end time to 0.986, it no longer does. However, the one that "works" isn't correct. The "g" sound is definetely not at the <1.0 mark, it's more like the 1.3 mark. 

    Your help is appreciated


    Wednesday, May 18, 2011 3:53 PM