src/experiments/obrero/visualTracker/frame.cc
int Frame::ExtractAudio( int16_t **channels ) const
{
	AudioInfo info;

	if ( GetAudioInfo( info ) == true )
		dv_decode_full_audio( decoder, data, channels );
	else
		info.samples = 0;

	return info.samples * info.channels * 2;
}
/** retrieves the audio data from the frame
 
    The DV frame contains audio data mixed in the video data blocks, 
    which can be retrieved easily using this function.
 
    The audio data consists of 16 bit, two channel audio samples (a 16 bit word for channel 1, followed by a 16 bit word
    for channel 2 etc.)
 
    \param channels an array of buffers of audio data, one per channel, up to four channels
    \return the number of bytes put into the buffer, or 0 if no audio data could be retrieved */
retrieves the audio data from the frame
The DV frame contains audio data mixed in the video data blocks,
which can be retrieved easily using this function.

The audio data consists of 16 bit, two channel audio samples (a 16 bit word for channel 1, followed by a 16 bit word
for channel 2 etc.)

\param channels an array of buffers of audio data, one per channel, up to four channels
\return the number of bytes put into the buffer, or 0 if no audio data could be retrieved
retrieves the audio data from the frame The DV frame contains audio data mixed in the video data blocks which can be retrieved easily using this function . The audio data consists of 16 bit two channel audio samples ( a 16 bit word for channel 1 followed by a 16 bit word for channel 2 etc . ) \ param channels an array of buffers of audio data one per channel up to four channels \ return the number of bytes put into the buffer or 0 if no audio data could be retrieved
int Frame::ExtractAudio( int16_t **channels ) const
{
	AudioInfo info;
	if ( GetAudioInfo( info ) == true )
		dv_decode_full_audio( decoder, data, channels );
	else
		info.samples = 0;
	return info.samples * info.channels * 2;
}
int Frame :: ExtractAudio ( int16_t * * channels ) const { AudioInfo info ; if ( GetAudioInfo ( info ) == true ) dv_decode_full_audio ( decoder , data , channels ) ; else info . samples = 0 ; return info . samples * info . channels * 2 ; }
retrieves the audio data from the frame
The DV frame contains audio data mixed in the video data blocks,
which can be retrieved easily using this function.
retrieves the audio data from the frame The DV frame contains audio data mixed in the video data blocks which can be retrieved easily using this function .