ReMAS  1.5
Real-time Musical Accompaniment System
Macros | Functions
SoundFunctions.h File Reference

File with sound (using ALSA) and auxiliar functions using by ReMAS, both CPU and GPU. More...

#include "defines.h"
#include <strings.h>

Go to the source code of this file.

Functions

int Read_WAVHeader (WAVHeader *, FILE *)
 Read_WAVHeader reads header of a WAVE file, checks its compability and fill Header struct. More...
 
bool DetectSilence (MyType, MyType *, MyType *)
 DetectSilence checks whether audio (frame) is silence or audio. More...
 

Detailed Description

File with sound (using ALSA) and auxiliar functions using by ReMAS, both CPU and GPU.

Author
Information Retrieval and Parallel Computing Group, University of Oviedo, Spain
Interdisciplinary Computation and Communication Group, Universitat Politecnica de Valencia, Spain
Signal Processing and Telecommunication Systems Research Group, University of Jaen, Spain.
Contact: remas.nosp@m.pack.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
February 13, 2017

Definition in file SoundFunctions.h.

Function Documentation

◆ DetectSilence()

bool DetectSilence ( MyType  obsprob,
MyType *  prob_silen,
MyType *  prob_audio 
)

DetectSilence checks whether audio (frame) is silence or audio.

Parameters
obsprob(in) vaule obtained doing: v_dxStates[1] - v_dxStates[0]
prob_silen(inout) Silence probability
prob_audio(inout) Audio probability
Returns
: 0 if audio, 1 if silence

Definition at line 283 of file SoundFunctions.h.

◆ Read_WAVHeader()

int Read_WAVHeader ( WAVHeader Header,
FILE *  fp 
)

Read_WAVHeader reads header of a WAVE file, checks its compability and fill Header struct.

Parameters
Header(out) Struct to fill
fp(in) file ID with the information
Returns
: 0 if all is OK, otherwise a code error (see defines.h)

Definition at line 132 of file SoundFunctions.h.