2011-06-02 21:59:20 +02:00
|
|
|
// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
|
2011-05-19 06:36:14 +02:00
|
|
|
// This file is part of the "cAudio Engine"
|
|
|
|
// For conditions of distribution and use, see copyright notice in cAudio.h
|
|
|
|
|
2011-05-29 20:33:24 +02:00
|
|
|
#pragma once
|
2011-05-19 06:36:14 +02:00
|
|
|
|
|
|
|
namespace cAudio
|
|
|
|
{
|
|
|
|
//! Interface for recieving Capture Manager Events
|
|
|
|
class ICaptureEventHandler
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
//! This function is called on capture device intialize.
|
|
|
|
virtual void onInit() = 0;
|
|
|
|
|
|
|
|
//! This function is called when the capture manager update's its internal buffers.
|
|
|
|
virtual void onUpdate() = 0;
|
|
|
|
|
|
|
|
//! This function is called on capture device shutdown.
|
|
|
|
virtual void onRelease() = 0;
|
|
|
|
|
|
|
|
//! This function is called when the user begins capturing audio.
|
|
|
|
virtual void onBeginCapture() = 0;
|
|
|
|
|
|
|
|
//! This function is called when the user ends a capture operation.
|
|
|
|
virtual void onEndCapture() = 0;
|
|
|
|
|
|
|
|
//! This function is called whe user requests data from the capture buffer.
|
|
|
|
virtual void onUserRequestBuffer() = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|