NVDA Helper
In-process and lite high-speed utilities for NVDA
beeps.cpp File Reference
#include <cmath>
#include <algorithm>
#include "beeps.h"

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 

Functions

int generateBeep (short *buf, const float hz, const int length, const int left, const int right)
 

Variables

const int sampleRate =44100
 
const int amplitude =14000
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Function Documentation

◆ generateBeep()

int generateBeep ( short * buf,
const float hz,
const int length,
const int left,
const int right )

References amplitude, and sampleRate.

Variable Documentation

◆ sampleRate

const int sampleRate =44100

Referenced by generateBeep().

◆ amplitude

const int amplitude =14000

Referenced by generateBeep().