Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbelib version #2

Open
cyber5tar86 opened this issue Feb 26, 2015 · 2 comments
Open

mbelib version #2

cyber5tar86 opened this issue Feb 26, 2015 · 2 comments

Comments

@cyber5tar86
Copy link

Hi! Which version of mbelib have you used to compile dsd-dmr?

@pbarfuss
Copy link
Contributor

Any - I just confirmed it as working with the szechyjs/mbelib upstream as of the latest merge.

Note that this code has a high turnover so far and you might run into parts of it in a broken state - please please please let me know if you run into any bugs! That would be greatly appreciated. DMR should be fine, it's more p25 that I'm worried about.

Also an important thing to note is that this code does not support outputting audio to soundcard (nor is this a high-priority goal - I might eventually implement it if everything else is done as an optional compile-time feature), this is more for outputting either decoded audio to a file or ambe/imbe data directly to files for logging purposes.

@cyber5tar86
Copy link
Author

there are same issues with your code:
gcc -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv -c -o dsd_main.o dsd_main.c
dsd_main.c: In function ‘noCarrier’:
dsd_main.c:93:23: warning: unused parameter ‘opts’ [-Wunused-parameter]
noCarrier (dsd_opts * opts, dsd_state * state)
^
dsd_main.c: In function ‘sigfun’:
dsd_main.c:272:13: warning: unused parameter ‘sig’ [-Wunused-parameter]
sigfun (int sig)
^
dsd_main.c: At top level:
dsd_main.c:24:21: warning: ‘generator_polynomial_dmr’ defined but not used [-Wunused-variable]
static unsigned int generator_polynomial_dmr = 0x11D; /* MM = 8, TT = 2 /
^
dsd_main.c:25:21: warning: ‘generator_polynomial_p25’ defined but not used [-Wunused-variable]
static unsigned int generator_polynomial_p25 = 0x43; /
MM = 6, TT = 8 /
^
dsd_main.c: In function ‘main’:
dsd_main.c:424:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, "\033[2J", 4);
^
dsd_main.c: In function ‘write_wav_header’:
dsd_main.c:205:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, &static_hdr_portion, 8);
^
dsd_main.c:217:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, &w, sizeof(WAVHeader));
^
dsd_main.c: In function ‘usage’:
dsd_main.c:242:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, usage_str, strlen(usage_str));
^
gcc -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv -c -o dsd_audio.o dsd_audio.c
gcc -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv -c -o dsd_datascope.o dsd_datascope.c
dsd_datascope.c: In function ‘print_datascope’:
dsd_datascope.c:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < lsize; i++) {
^
dsd_datascope.c:46:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, tmpbuf, tmplen);
^
dsd_datascope.c:47:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, separator, 67);
^
dsd_datascope.c:73:18: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, buf, 66);
^
dsd_datascope.c:75:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(1, separator, 67);
^
gcc -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv -c -o dsd_dibit.o dsd_dibit.c
gcc -Wall -Wextra -MMD -O2 -fno-math-errno -fno-trapping-math -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fwrapv -c -o dsd_file.o dsd_file.c
dsd_file.c:143:13: error: static declaration of ‘mbe_demodulateImbe7200x4400Data’ follows non-static declaration
static void mbe_demodulateImbe7200x4400Data (char imbe[8][23])
^
In file included from dsd.h:36:0,
from dsd_file.c:18:
/usr/include/mbelib.h:81:6: note: previous declaration of ‘mbe_demodulateImbe7200x4400Data’ was here
void mbe_demodulateImbe7200x4400Data (char imbe[8][23]);
^
dsd_file.c:174:12: error: static declaration of ‘mbe_eccImbe7200x4400Data’ follows non-static declaration
static int mbe_eccImbe7200x4400Data (char imbe_fr[8][23], char *imbe_d)
^
In file included from dsd.h:36:0,
from dsd_file.c:18:
/usr/include/mbelib.h:79:5: note: previous declaration of ‘mbe_eccImbe7200x4400Data’ was here
int mbe_eccImbe7200x4400Data (char imbe_fr[8][23], char *imbe_d);
^
dsd_file.c: In function ‘mbe_eccImbe7200x4400Data’:
dsd_file.c:190:7: warning: implicit declaration of function ‘Golay23_CorrectAndGetErrCount’ [-Wimplicit-function-declaration]
errs += Golay23_CorrectAndGetErrCount(&block);
^
dsd_file.c: At top level:
dsd_file.c:217:1: error: conflicting types for ‘process_IMBE’
process_IMBE (dsd_opts
opts, dsd_state* state, unsigned char imbe_dibits[72])
^
In file included from dsd_file.c:18:0:
dsd.h:249:6: note: previous declaration of ‘process_IMBE’ was here
void process_IMBE (dsd_opts* opts, dsd_state* state, char imbe_fr[8][23]);
^
dsd_file.c:315:1: error: conflicting types for ‘processAMBEFrame’
processAMBEFrame (dsd_opts * opts, dsd_state * state, unsigned char ambe_dibits[36])
^
In file included from dsd_file.c:18:0:
dsd.h:247:6: note: previous declaration of ‘processAMBEFrame’ was here
void processAMBEFrame (dsd_opts * opts, dsd_state * state, char ambe_fr[4][24]);
^
dsd_file.c: In function ‘closeMbeOutFile’:
dsd_file.c:374:7: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
int result;
^
dsd_file.c: In function ‘saveAmbe2450Data’:
dsd_file.c:42:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(opts->mbe_out_fd, buf, 8);
^
dsd_file.c: In function ‘saveImbe4400Data’:
dsd_file.c:64:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(opts->mbe_out_fd, buf, 12);
^
dsd_file.c: In function ‘writeSynthesizedVoice’:
dsd_file.c:140:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(opts->wav_out_fd, aout_buf, 160 * sizeof(int16_t));
^
dsd_file.c: In function ‘openMbeOutFile’:
dsd_file.c:410:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write (opts->mbe_out_fd, magic, 4);
^
make: *** [dsd_file.o] Errore 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants