MeiCam SDK For iOS  3.10.0
NvsCustomAudioFx.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2017. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Jul 20. 2017
11 // Author: NewAuto video team
12 //================================================================================
13 #pragma once
14 
15 #import <Foundation/Foundation.h>
16 #import "NvsCommonDef.h"
17 #import <CoreMedia/CMSampleBuffer.h>
18 
20  CMSampleBufferRef inputAudioSamples;
21  int64_t effectTime;
22  int64_t effectStartTime;
23  int64_t effectEndTime;
24 };
25 
26 typedef enum {
30 
39 @protocol NvsCustomAudioFxRenderer <NSObject>
40 
51 - (void)didInit;
52 
64 
75 - (void)didCleanup;
76 
88 - (NvsCustomAudioFxRenderError)didRender:(struct NvsCustomAudioFxRenderContext *)renderContext outputSamples:(CMSampleBufferRef*)outputSamplesBuffer;
89 
96 - (NvsCustomAudioFxRenderError)didFlushWithOutputSample:(CMSampleBufferRef*)outputSamplesBuffer;
97 
98 @end
99 
100 
NvsCustomAudioFxRenderError_NoError
@ NvsCustomAudioFxRenderError_NoError
Definition: NvsCustomAudioFx.h:27
NvsCustomAudioFxRenderer-p
Custom audio effects renderer interface.
Definition: NvsCustomAudioFx.h:39
NvsCustomAudioFxRenderError_Unknown
@ NvsCustomAudioFxRenderError_Unknown
Definition: NvsCustomAudioFx.h:28
-[NvsCustomAudioFxRenderer-p didInit]
void didInit()
Meishe SDK calls this method on custom audio effects to let the user initialize some resources.
NvsCustomAudioFxRenderContext::effectEndTime
int64_t effectEndTime
Effect ending time (in microseconds).
Definition: NvsCustomAudioFx.h:23
-[NvsCustomAudioFxRenderer-p didQuerySupportedInputAudioSampleFormat]
NvsAudioSampleFormat didQuerySupportedInputAudioSampleFormat()
Meishe SDK calls this method on custom audio effects to let sdk to known audio format.
-[NvsCustomAudioFxRenderer-p didCleanup]
void didCleanup()
Meishe SDK calls this method on custom audio effects to let users clean up resources.
NvsCustomAudioFxRenderContext::effectStartTime
int64_t effectStartTime
Effect starting time (in microseconds).
Definition: NvsCustomAudioFx.h:22
NvsAudioSampleFormat
NvsAudioSampleFormat
Audio sampling format.
Definition: NvsCommonDef.h:28
NvsCommonDef.h
NvsCustomAudioFxRenderContext::inputAudioSamples
CMSampleBufferRef inputAudioSamples
Inputs audio samples.
Definition: NvsCustomAudioFx.h:20
NvsCustomAudioFxRenderContext::effectTime
int64_t effectTime
Special effect duration (in microseconds).
Definition: NvsCustomAudioFx.h:21
NvsCustomAudioFxRenderContext
Definition: NvsCustomAudioFx.h:19
NvsCustomAudioFxRenderError
NvsCustomAudioFxRenderError
Definition: NvsCustomAudioFx.h:26