summaryrefslogtreecommitdiff
blob: c42deefeca6cd9946947618eaa76ce32e28a9237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- output/alsa-final/alsa.c.old	2004-12-23 13:20:52.238347728 +0900
+++ output/alsa-final/alsa.c	2004-12-23 13:21:15.998735600 +0900
@@ -173,9 +173,9 @@
 		goto _err;
 	}	
 	err = snd_pcm_hw_params_set_format(sound_handle, hwparams,
-					   SND_PCM_FORMAT_S16_LE);
+					   SND_PCM_FORMAT_S16);
 	if (err < 0) {
-		puts("error on set_format SND_PCM_FORMAT_S16_LE");
+		puts("error on set_format SND_PCM_FORMAT_S16");
 		goto _err;
 	}
 	val = output_rate;
--- output/alsa-0.5.x/alsa.old	2004-12-23 14:32:41.420252504 +0900
+++ output/alsa-0.5.x/alsa.c	2004-12-23 14:33:07.996212344 +0900
@@ -121,7 +121,7 @@
 	params.buf.block.frags_min = 1;
 
 	memset(&format, 0, sizeof(format));
-	format.format =  SND_PCM_SFMT_S16_LE;
+	format.format =  SND_PCM_SFMT_S16;
 	format.rate = output_rate;
 	format.voices = *channels;
 	format.interleave = 1;
@@ -166,7 +166,7 @@
 	params.start_mode = SND_PCM_START_FULL;
 	params.stop_mode = SND_PCM_STOP_STOP;
 	memset(&format, 0, sizeof(format));
-	format.format =  SND_PCM_SFMT_S16_LE;
+	format.format =  SND_PCM_SFMT_S16;
 	format.rate = output_rate = rate;
 	format.voices = 2;
 	format.interleave = 1;