Skip to contentSkip to conversation

speaker-test: increase the maximum supported rate to 384000

PATCH Applied Antonio Ospite 2 participants 2 messages Jan 16, 2013 – Jan 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 speaker-test: increase the maximum supported rate to 384000

There are some devices around supporting this sample rate so let's make speaker-test capable to deal with them.

---
 speaker-test/speaker-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
speaker-test/speaker-test.c +1 -1
index 3c89c38..de42a0c 100644
@@ -999,7 +999,7 @@ int main(int argc, char *argv[]) {
     case 'r':
       rate = atoi(optarg);
       rate = rate < 4000 ? 4000 : rate;
-      rate = rate > 196000 ? 196000 : rate;
+      rate = rate > 384000 ? 384000 : rate;
       break;
     case 'c':
       channels = atoi(optarg);
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

At Wed, 16 Jan 2013 17:06:04 +0100,

Quoted 5 lines · Antonio Ospite

There are some devices around supporting this sample rate so let's make speaker-test capable to deal with them.

Thanks, applied now.

Takashi

Quoted 20 lines
---
 speaker-test/speaker-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
speaker-test/speaker-test.c +1 -1
index 3c89c38..de42a0c 100644
@@ -999,7 +999,7 @@ int main(int argc, char *argv[]) {
     case 'r':
       rate = atoi(optarg);
       rate = rate < 4000 ? 4000 : rate;
-      rate = rate > 196000 ? 196000 : rate;
+      rate = rate > 384000 ? 384000 : rate;
       break;
     case 'c':
       channels = atoi(optarg);
Signature · 1 line
1.7.10.4