CFx SDK Documentation  2020SP3
FxAVAudioOutput.h
Go to the documentation of this file.
1 #pragma once
2 
3 //
4 // (C) Copyright 2005-2020 by Graebert GmbH.
5 //
6 // Permission to use, copy, modify, and distribute this software in
7 // object code form for any purpose and without fee is hereby granted,
8 // provided that the above copyright notice appears in all copies and
9 // that both that copyright notice and the limited warranty and
10 // restricted rights notice below appear in all supporting
11 // documentation.
12 //
13 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17 // UNINTERRUPTED OR ERROR FREE.
18 
19 #pragma once
20 
21 #include "../FxCommonFramework.h"
22 #include "../UI/FxUIObject.h"
23 #include "../UI/FxUISignal.h"
24 
25 #include <vector>
26 
32 {
33 public:
37  enum class State
38  {
39  ActiveState,
40  SuspendedState,
41  StoppedState,
42  IdleState,
43  InterruptedState
44  };
45 
49  virtual ~CFxAVAudioOutput();
50 
56  void start( const std::vector<unsigned char>& buffer );
60  void stop();
64  void suspend();
68  void resume();
73 
77  CFxUISignal<void( void )>& stopped();
78 };
buffer
GLuint buffer
Definition: gles2_ext.h:178
CFxAVAudioOutput::state
State state()
CFxAVAudioOutput::start
void start(const std::vector< unsigned char > &buffer)
CFxUISignal
Definition: FxUISignal.h:74
CFxAVAudioOutput::~CFxAVAudioOutput
virtual ~CFxAVAudioOutput()
CFxAVAudioOutput::State
State
Definition: FxAVAudioOutput.h:38
CFxAVAudioOutput::resume
void resume()
CFxAVAudioOutput::stop
void stop()
CFxAVAudioOutput::CFxAVAudioOutput
CFxAVAudioOutput()
CFxAVAudioOutput
Definition: FxAVAudioOutput.h:32
COMMONUI_API
#define COMMONUI_API
Definition: FxCommonFramework.h:4
CFxAVAudioOutput::stopped
CFxUISignal< void(void)> & stopped()
CFxUIObject
Definition: FxUIObject.h:101
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
CFxAVAudioOutput::suspend
void suspend()