changeset 5:c4218fbe158f

Fix indent in pmd_play.c.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 21 May 2013 13:30:32 +0200
parents c8875256b767
children da588a3fb3cc
files pmd_play.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/pmd_play.c
+++ b/pmd_play.c
@@ -107,7 +107,7 @@ static int music_load(char *filename)
     if((fd = open(filename, O_RDONLY)) < 0) {
         return ERR_OPEN_MUSIC_FILE;
     }
-    
+
     size = read(fd, musbuf, sizeof(musbuf));
     close(fd);
     result = music_load3(musbuf, size);
@@ -116,7 +116,7 @@ static int music_load(char *filename)
 #endif
 
 static void usage(char *argv0) {
-    const char *usage_str = 
+    const char *usage_str =
 "%s [-f <output file>] [-l <loop count>] [-m <device mask>] [-c <channel mask>] [-t <time>] [-r <samplerate>] <PMD File>\n\
        -f - Write output to wavfile\n\
        -l - Loop n times (default is once - use 0 for infinite loop)\n\
@@ -139,7 +139,7 @@ int main(int argc, char **argv) {
     HWAVEOUT hWaveOut;
 #endif
     char buf[1024];
-	pmdwininit();
+    pmdwininit();
 
     while((opt = getopt(argc, argv, "f:l:m:c:t:r:")) != -1) {
         switch(opt) {
@@ -160,9 +160,9 @@ int main(int argc, char **argv) {
             case 't':
               pmd_length = atoui((uint8_t*)optarg)*1000;
               break;
-			case 'r':
-			  samplerate_out = atoui((uint8_t*)optarg);
-			  break;
+            case 'r':
+              samplerate_out = atoui((uint8_t*)optarg);
+              break;
             default:
               usage(argv[0]);
               return 1;
@@ -174,7 +174,7 @@ int main(int argc, char **argv) {
         if(!wave_out_open(&hWaveOut, samplerate_out, 1)) {
 #else
 #ifdef USE_ALSA
-		if((out_fd = alsa_audio_open(&samplerate_out, 1, NULL, 0)) < 0) {
+        if((out_fd = alsa_audio_open(&samplerate_out, 1, NULL, 0)) < 0) {
 #else
         if((out_fd = oss_audio_open(samplerate_out, 1)) < 0) {
 #endif
@@ -200,7 +200,7 @@ int main(int argc, char **argv) {
     printf("Title = %s\n", pmd_title);
     getmemo3(pmd_compo, NULL, 0, 2);
     printf("Composer = %s\n", pmd_compo);
-	setpcmrate(samplerate_out);
+    setpcmrate(samplerate_out);
     music_start();
     i = 0;
     if(pmd_length != 0) {
@@ -222,7 +222,7 @@ int main(int argc, char **argv) {
         if(!tofile) {
             j = snd_pcm_writei(out_fd, pcmbuf, 2048);
             if(j == -EPIPE) {
-            	snd_pcm_prepare(out_fd);
+                snd_pcm_prepare(out_fd);
             }
         } else
 #endif
@@ -236,7 +236,7 @@ int main(int argc, char **argv) {
     } else
 #endif
 #ifdef USE_ALSA
-		alsa_audio_close(out_fd);
+        alsa_audio_close(out_fd);
 #else
         close(out_fd);
 #endif