windows build initial attempts.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@333 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
ffe8247552
commit
df1b623c5e
|
@ -299,6 +299,10 @@
|
||||||
RelativePath="..\src\include\sangoma_tdm_api.h"
|
RelativePath="..\src\include\sangoma_tdm_api.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\include\zap_pika.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\include\zap_skel.h"
|
RelativePath="..\src\include\zap_skel.h"
|
||||||
>
|
>
|
||||||
|
@ -315,6 +319,30 @@
|
||||||
<Filter
|
<Filter
|
||||||
Name="Source Files"
|
Name="Source Files"
|
||||||
>
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\zap_pika.c"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories=""c:\Program Files\PIKA\AoH\inc""
|
||||||
|
DisableSpecificWarnings="4214"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories=""c:\Program Files\PIKA\AoH\inc""
|
||||||
|
DisableSpecificWarnings="4214"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\zap_skel.c"
|
RelativePath="..\src\zap_skel.c"
|
||||||
>
|
>
|
||||||
|
|
|
@ -73,7 +73,7 @@ struct pika_chan_data {
|
||||||
PKH_TPlayConfig play_config;
|
PKH_TPlayConfig play_config;
|
||||||
zap_buffer_t *digit_buffer;
|
zap_buffer_t *digit_buffer;
|
||||||
zap_mutex_t *digit_mutex;
|
zap_mutex_t *digit_mutex;
|
||||||
int dtmf_len;
|
zap_size_t dtmf_len;
|
||||||
};
|
};
|
||||||
typedef struct pika_chan_data pika_chan_data_t;
|
typedef struct pika_chan_data pika_chan_data_t;
|
||||||
|
|
||||||
|
@ -104,49 +104,49 @@ static ZIO_CONFIGURE_FUNCTION(pika_configure)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(var, "rx-gain")) {
|
if (!strcasecmp(var, "rx-gain")) {
|
||||||
profile->record_config.gain = atof(val);
|
profile->record_config.gain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-enabled")) {
|
} else if (!strcasecmp(var, "rx-agc-enabled")) {
|
||||||
profile->record_config.AGC.enabled = zap_true(val);
|
profile->record_config.AGC.enabled = zap_true(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-targetPower")) {
|
} else if (!strcasecmp(var, "rx-agc-targetPower")) {
|
||||||
profile->record_config.AGC.targetPower = atof(val);
|
profile->record_config.AGC.targetPower = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-minGain")) {
|
} else if (!strcasecmp(var, "rx-agc-minGain")) {
|
||||||
profile->record_config.AGC.minGain = atof(val);
|
profile->record_config.AGC.minGain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-maxGain")) {
|
} else if (!strcasecmp(var, "rx-agc-maxGain")) {
|
||||||
profile->record_config.AGC.maxGain = atof(val);
|
profile->record_config.AGC.maxGain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-attackRate")) {
|
} else if (!strcasecmp(var, "rx-agc-attackRate")) {
|
||||||
profile->record_config.AGC.attackRate = atoi(val);
|
profile->record_config.AGC.attackRate = atoi(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-decayRate")) {
|
} else if (!strcasecmp(var, "rx-agc-decayRate")) {
|
||||||
profile->record_config.AGC.decayRate = atoi(val);
|
profile->record_config.AGC.decayRate = atoi(val);
|
||||||
} else if (!strcasecmp(var, "rx-agc-speechThreshold")) {
|
} else if (!strcasecmp(var, "rx-agc-speechThreshold")) {
|
||||||
profile->record_config.AGC.speechThreshold = atof(val);
|
profile->record_config.AGC.speechThreshold = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-enabled")) {
|
} else if (!strcasecmp(var, "rx-vad-enabled")) {
|
||||||
profile->record_config.VAD.enabled = zap_true(val);
|
profile->record_config.VAD.enabled = zap_true(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-activationThreshold")) {
|
} else if (!strcasecmp(var, "rx-vad-activationThreshold")) {
|
||||||
profile->record_config.VAD.activationThreshold = atof(val);
|
profile->record_config.VAD.activationThreshold = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-activationDebounceTime")) {
|
} else if (!strcasecmp(var, "rx-vad-activationDebounceTime")) {
|
||||||
profile->record_config.VAD.activationDebounceTime = atoi(val);
|
profile->record_config.VAD.activationDebounceTime = atoi(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-deactivationThreshold")) {
|
} else if (!strcasecmp(var, "rx-vad-deactivationThreshold")) {
|
||||||
profile->record_config.VAD.deactivationThreshold = atof(val);
|
profile->record_config.VAD.deactivationThreshold = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-deactivationDebounceTime")) {
|
} else if (!strcasecmp(var, "rx-vad-deactivationDebounceTime")) {
|
||||||
profile->record_config.VAD.deactivationDebounceTime = atoi(val);
|
profile->record_config.VAD.deactivationDebounceTime = atoi(val);
|
||||||
} else if (!strcasecmp(var, "rx-vad-preSpeechBufferSize")) {
|
} else if (!strcasecmp(var, "rx-vad-preSpeechBufferSize")) {
|
||||||
profile->record_config.VAD.preSpeechBufferSize = atoi(val);
|
profile->record_config.VAD.preSpeechBufferSize = atoi(val);
|
||||||
} else if (!strcasecmp(var, "tx-gain")) {
|
} else if (!strcasecmp(var, "tx-gain")) {
|
||||||
profile->play_config.gain = atof(val);
|
profile->play_config.gain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-enabled")) {
|
} else if (!strcasecmp(var, "tx-agc-enabled")) {
|
||||||
profile->play_config.AGC.enabled = zap_true(val);
|
profile->play_config.AGC.enabled = zap_true(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-targetPower")) {
|
} else if (!strcasecmp(var, "tx-agc-targetPower")) {
|
||||||
profile->play_config.AGC.targetPower = atof(val);
|
profile->play_config.AGC.targetPower = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-minGain")) {
|
} else if (!strcasecmp(var, "tx-agc-minGain")) {
|
||||||
profile->play_config.AGC.minGain = atof(val);
|
profile->play_config.AGC.minGain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-maxGain")) {
|
} else if (!strcasecmp(var, "tx-agc-maxGain")) {
|
||||||
profile->play_config.AGC.maxGain = atof(val);
|
profile->play_config.AGC.maxGain = (PK_FLOAT)atof(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-attackRate")) {
|
} else if (!strcasecmp(var, "tx-agc-attackRate")) {
|
||||||
profile->play_config.AGC.attackRate = atoi(val);
|
profile->play_config.AGC.attackRate = atoi(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-decayRate")) {
|
} else if (!strcasecmp(var, "tx-agc-decayRate")) {
|
||||||
profile->play_config.AGC.decayRate = atoi(val);
|
profile->play_config.AGC.decayRate = atoi(val);
|
||||||
} else if (!strcasecmp(var, "tx-agc-speechThreshold")) {
|
} else if (!strcasecmp(var, "tx-agc-speechThreshold")) {
|
||||||
profile->play_config.AGC.speechThreshold = atof(val);
|
profile->play_config.AGC.speechThreshold = (PK_FLOAT)atof(val);
|
||||||
} else {
|
} else {
|
||||||
ok = 0;
|
ok = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue