Displaying 2 results from an estimated 2 matches for "samplestowrite".
2009 Dec 12
1
Skipping of sample in ogg writing
...file. Can any one suggest what could
be wrong in the code. Is there anything like bug in ogg itself or am I
missing something critical step.
Here is the code for writing the ogg file.
//==============================================================================
bool write (const int** samplesToWrite, int numSamples)
{
if (numSamples > 0)
{
float** const vorbisBuffer = vorbis_analysis_buffer (&vd,
numSamples);
for (int i = numChannels; --i >= 0;)
{
float* const dst = vorbisBuffer[i];
cons...
2009 Dec 12
1
Skipping of sample in ogg writing
...file. Can any one suggest what could
be wrong in the code. Is there anything like bug in ogg itself or am I
missing something critical step.
Here is the code for writing the ogg file.
//==============================================================================
bool write (const int** samplesToWrite, int numSamples)
{
if (numSamples > 0)
{
float** const vorbisBuffer = vorbis_analysis_buffer (&vd,
numSamples);
for (int i = numChannels; --i >= 0;)
{
float* const dst = vorbisBuffer[i];
cons...