• R/O
  • SSH
  • HTTPS

midisynth: Commit


Commit MetaInfo

Revision3 (tree)
Time2017-10-14 03:19:54
Authorjakobthomsen

Log Message

cleanup

Change Summary

Incremental Difference

--- trunk/midisynth.cpp (revision 2)
+++ trunk/midisynth.cpp (revision 3)
@@ -47,7 +47,6 @@
4747
4848 //std::ofstream File("test", std::ios::binary);
4949
50-const int AMPLITUDE = 28000;
5150 const int SAMPLE_RATE = 44100;
5251
5352 class Param
@@ -60,7 +59,6 @@
6059 class Data
6160 {
6261 public:
63- int total_count;
6462 int sample_nr;
6563 std::map<unsigned char, Param> params;
6664 };
@@ -201,9 +199,7 @@
201199 {
202200 if(SDL_Init(SDL_INIT_AUDIO) != 0) SDL_Log("Failed to initialize SDL: %s", SDL_GetError());
203201
204- float duration = 1;
205202 Data data;
206- data.total_count = ((int)(duration * SAMPLE_RATE));
207203 data.sample_nr = 0;
208204 data.params.clear();
209205
Show on old repository browser