14 Commits

Author SHA1 Message Date
Andrey Volk
99d9c3bd65
Merge pull request #1259 from bmlkc/mod-opusfile-drain-before-closing-write
[mod_opusfile] add opc_encoder_drain before destroying handle
2021-12-01 12:38:21 +03:00
Sebastian Kemper
3128afeae7 [mod_opusfile] fix type errors
Since the last round of changes it fails to compile:

mod_opusfile.c: In function 'decode_stream_cb':
mod_opusfile.c:933:143: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'switch_thread_id_t' {aka 'struct __pthread *'} [-Werror=format=]
  933 |                 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[OGG/OPUS Stream Decode] decode_stream_cb(): switch_thread_self(): %lx\n",  switch_thread_self());
      |                                                                                                                                             ~~^      ~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                               |      |
      |                                                                                                                                               |      switch_thread_id_t {aka struct __pthread *}
      |                                                                                                                                               long unsigned int

Address this by applying the same casts that are also used in
src/mod/formats/mod_sndfile/test/test_sndfile.c already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-11-01 09:51:26 +01:00
Dragos Oancea
0cf323c339 [mod_opusfile] unit-tests: add timer to fix random failures due to the fact that the decoding callback is not installed immediatelly 2021-10-15 16:52:06 +03:00
Dragos Oancea
97a0b0fbae [mod_opusfile] protect ogg data buff 2021-10-15 16:52:06 +03:00
Dragos Oancea
37ab323c13 [mod_opusfile] add ogg/opus streams, fix Makefile for encoding.
[mod_opusfile] add stats, opusctl

[mod_opusfile] add unit-test using teletone
2021-10-15 16:52:06 +03:00
bmlkc
d03100661e [mod_opusfile] not draining before destroying encoder causes loss on encoded file 2021-07-09 20:44:43 +02:00
jelmd
466a455286
[mod_opusfile] Fix compiling write file support 2020-08-05 03:29:04 +04:00
Dragos Oancea
2876442317 [mod_opusfile] use SWITCH_SIZE_T_FMT when printing debug logs. 2020-02-07 12:39:17 +00:00
Dragos Oancea
0ec6ec10ae [mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix EOF, add unit-test. 2020-01-25 20:42:07 +04:00
Andrey Volk
ebeada67d1 Revert "[mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix eof."
This reverts commit 937c4a03eb032b4b3d1a8a8ad08c777de7a08314.
2020-01-06 22:47:49 +04:00
Dragos Oancea
937c4a03eb [mod_opusfile] fix play sample rate (don't use original rate, always use 48k), fix eof. 2020-01-03 19:00:26 +00:00
Mike Jerris
b26a467377 FS-10530: [mod_opusfile] fix Makefile for include path 2019-03-04 22:20:38 +04:00
Dragos Oancea
ed2b3b7bb4 FS-10530: [mod_opusfile]: multichannel 2018-04-13 04:52:59 -04:00
Dragos Oancea
2a4cf1f04e FS-10530: [mod_opusfile] new module, read and write ogg/opus files (".opus" extension) 2017-08-14 08:59:41 -04:00