cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
ISourceEventHandler.h
1// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
2// This file is part of the "cAudio Engine"
3// For conditions of distribution and use, see copyright notice in cAudio.h
4
5#pragma once
6
7namespace cAudio
8{
11 {
12 public:
14 virtual void onUpdate(){}
15
17 virtual void onRelease(){}
18
20 virtual void onPlay(){}
21
23 virtual void onStop(){}
24
26 virtual void onPause(){}
27
28 virtual ~ISourceEventHandler(){}
29 };
30};
31
Interface for event handlers on Audio Sources.
virtual void onPlay()
This function is called when a source starts playing.
virtual void onUpdate()
This function is called when a source updates its buffers.
virtual void onPause()
This function is called when a source is paused.
virtual void onRelease()
This function is called when a source is released and soon to be deleted.
virtual void onStop()
This function is called when a source stopped playback.
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16