Skip to content

Grieverheart/sdl_tone_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

This is a simple demonstration of how to use SDL to create an application that generates sound, in particular a sinusoidal tone. you can play around with the frequency, volume, as well as the function used for the tone generation. Can you generate a square wave or a sawtooth wave?

Compile and link with SDL, e.g.:

g++ -Wall -O3 -o main -lSDL2 main.cpp

About

Demonstration of using SDL to generate audio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages