react-native-tiny-wavpack-decoder 0.1.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +0,0 @@
1
- // #include "TinyWavPackDecoderInterface.h"
2
- // #include <stdio.h>
3
- // #include <stdlib.h>
4
- // #include <string.h>
5
-
6
- // int main(int argc, char *argv[]) {
7
- // if (argc < 3) {
8
- // printf("Usage: %s <input.wv> <output.wav> [-m max_samples] [-b bits_per_sample] [-v]\n", argv[0]);
9
- // printf(" -m: max samples to decode (-1 for all, default -1)\n");
10
- // printf(" -b: bits per sample (8, 16, 24, 32, default 16)\n");
11
- // printf(" -v: verbose output\n");
12
- // return 1;
13
- // }
14
-
15
- // const char* inputPath = argv[1];
16
- // const char* outputPath = argv[2];
17
- // int max_samples = -1;
18
- // int force_bps = 16; // Default to 16-bit
19
- // int verbose = 0;
20
-
21
- // for (int i = 3; i < argc; i++) {
22
- // if (strcmp(argv[i], "-m") == 0 && i + 1 < argc) {
23
- // max_samples = atoi(argv[++i]);
24
- // }
25
- // else if (strcmp(argv[i], "-b") == 0 && i + 1 < argc) {
26
- // force_bps = atoi(argv[++i]);
27
- // }
28
- // else if (strcmp(argv[i], "-v") == 0) {
29
- // verbose = 1;
30
- // }
31
- // else {
32
- // printf("Unknown option: %s\n", argv[i]);
33
- // return 1;
34
- // }
35
- // }
36
-
37
- // DecoderResult result = decode_wavpack_to_wav(inputPath, outputPath, max_samples, force_bps, verbose);
38
- // if (result.success) {
39
- // printf("Decoding successful: %s created\n", outputPath);
40
- // } else {
41
- // printf("Decoding failed: %s\n", result.error);
42
- // }
43
-
44
- // return result.success ? 0 : 1;
45
- // }
@@ -1,45 +0,0 @@
1
- // #include "TinyWavPackDecoderInterface.h"
2
- // #include <stdio.h>
3
- // #include <stdlib.h>
4
- // #include <string.h>
5
-
6
- // int main(int argc, char *argv[]) {
7
- // if (argc < 3) {
8
- // printf("Usage: %s <input.wv> <output.wav> [-m max_samples] [-b bits_per_sample] [-v]\n", argv[0]);
9
- // printf(" -m: max samples to decode (-1 for all, default -1)\n");
10
- // printf(" -b: bits per sample (8, 16, 24, 32, default 16)\n");
11
- // printf(" -v: verbose output\n");
12
- // return 1;
13
- // }
14
-
15
- // const char* inputPath = argv[1];
16
- // const char* outputPath = argv[2];
17
- // int max_samples = -1;
18
- // int force_bps = 16; // Default to 16-bit
19
- // int verbose = 0;
20
-
21
- // for (int i = 3; i < argc; i++) {
22
- // if (strcmp(argv[i], "-m") == 0 && i + 1 < argc) {
23
- // max_samples = atoi(argv[++i]);
24
- // }
25
- // else if (strcmp(argv[i], "-b") == 0 && i + 1 < argc) {
26
- // force_bps = atoi(argv[++i]);
27
- // }
28
- // else if (strcmp(argv[i], "-v") == 0) {
29
- // verbose = 1;
30
- // }
31
- // else {
32
- // printf("Unknown option: %s\n", argv[i]);
33
- // return 1;
34
- // }
35
- // }
36
-
37
- // DecoderResult result = decode_wavpack_to_wav(inputPath, outputPath, max_samples, force_bps, verbose);
38
- // if (result.success) {
39
- // printf("Decoding successful: %s created\n", outputPath);
40
- // } else {
41
- // printf("Decoding failed: %s\n", result.error);
42
- // }
43
-
44
- // return result.success ? 0 : 1;
45
- // }
Binary file