Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
ic-scm committed Oct 30, 2019
1 parent fe2ab58 commit 5229610
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 457 deletions.
6 changes: 1 addition & 5 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ unsigned long written_samples=0;

#include "brstm.h" //must be included after this stuff

long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

//-------------------######### STRINGS

const char* helpString0 = "Usage:\n";
Expand Down Expand Up @@ -124,7 +120,7 @@ int main( int argc, char* args[] ) {
//read the brstm
unsigned char result=readBrstm(memblock,verb+1);
if(result>127) {
std::cout << "Error.";
std::cout << "Error.\n";
return result;
}

Expand Down
Loading

0 comments on commit 5229610

Please sign in to comment.