// stop the streams that are enabled
void KinectSensor::StopStreams()
{
    AutoLock lock(m_nuiLock);

    StopColorStream();
    StopDepthStream();
    StopSkeletonStream();
    StopAudioStream();
}
Exemple #2
0
int32 ad_stop_rec (ad_rec_t *handle)
{
  if (! handle->recording)
    return AD_ERR_GEN;

  if (StopAudioStream( handle->stream ) < 0)
    return AD_ERR_GEN;

  handle->recording = 0;

#ifdef AD_PA_DEBUG
  fprintf(stderr, "A/D Recognition stopped\n");
  fprintf(stderr, ">>>ad_stop_rec>>>ring buffer: %d[r:%d;w:%d]\n",
	  handle->stream->inFIFO.bufferSize/handle->bps,
	  handle->stream->inFIFO.readIndex/handle->bps,
	  handle->stream->inFIFO.writeIndex/handle->bps);
#endif

  return 0;
}
Exemple #3
0
void StopAudioWavStream(void)
{
	StopAudioStream();
}
Exemple #4
0
void StopAudioDviStream(void)
{
	StopAudioStream();
}
Exemple #5
0
void StopAudioMidiStream(void)
{
	StopAudioStream();
}