Premiere Pro SDK Audio Buffers
Hi all! I'm trying to work with my audio channels and buffers using the PrSDKAudioSuite, which tells me this:
// All audio calls to and from Premiere use arrays of buffers of 32-bit
// floats to pass audio. Therefore all audio is not interleaved by channel.
// So stereo audio looks like this:
//
// float* audio[2];
//
// where audio[0] is the address of a buffer N samples long and audio[1]
// is the address of a second buffer N samples long. audio[0] contains
// the left channel and audio[1] contains the right channel. N is called
// the number of "sample frames" in the buffer. N will be the same no matter
// how many channels of audio are present in the buffer.
//
// Because we use 32-bit floats for each audio sample, we can represent
// values above 0 dB during mixing. 0 dB corresponds to +/- 1.0 in the floating
// point. For symmetry in the int <--> float conversions, it is recommended
// you use the utility functions below. For example if you want to convert
// a single float to a 16-bit signed int, use ConvertAndInterleaveTo16BitInteger()
// with 1 channel and one sample frame.
I do have the buffers as the float, but they all seem to stay NULL. Is there something i'm missing or doing wrong? Hope somebody can point me into the right direction.
Thank you,
Bas