void main()
{
for (;;) {
for (i = 0; i < NUM_BANDS; i++) {
decibel = 20.0f * log10f(spectra_ptr[i]);
graph[i] = (CriSint32)(decibel + 96.0f);
}
Sleep(10);
}
}
CriSint32 num_channels, CriSint32 num_samples, void *data[])
{
AppObj *app_obj = (AppObj*)obj;
if ((num_channels <= 0) || (num_samples <= 0)) {
return;
}
}
void criAtomExAsr_SetBusFilterCallback(CriSint32 bus_no, CriAtomExAsrBusFilterCbFunc pre_func, CriAtomExAsrBusFilterCbFunc post_func, void *obj)
void criAtomDspSpectra_Reset(CriAtomDspSpectraHn spectra)
Reset spectrum analyzer
void criAtomDspSpectra_Process(CriAtomDspSpectraHn spectra, CriUint32 num_channels, CriUint32 num_samples, CriFloat32 *pcm[])
Spectrum analysis
CriAtomDspSpectraHn criAtomDspSpectra_Create(const CriAtomDspSpectraConfig *config, void *work, CriSint32 work_size)
Spectrum analyzer creation
const CriFloat32 * criAtomDspSpectra_GetLevels(CriAtomDspSpectraHn spectra)
Acquire spectral analysis results
enum CriAtomPcmFormatTag CriAtomPcmFormat
PCM format