Browse Source

Merge pull request #20 from x42/master

Opus Netjack fixes
tags/1.9.9.5
Stéphane Letz 13 years ago
parent
commit
f204e7f73c
3 changed files with 0 additions and 8 deletions
  1. +0
    -2
      common/JackNetOneDriver.cpp
  2. +0
    -4
      common/JackNetTool.cpp
  3. +0
    -2
      common/netjack.c

+ 0
- 2
common/JackNetOneDriver.cpp View File

@@ -156,7 +156,6 @@ int JackNetOneDriver::AllocPorts()
#if HAVE_OPUS
OpusCustomMode *opus_mode = opus_custom_mode_create(netj.sample_rate, netj.period_size, NULL); // XXX free me in the end
OpusCustomDecoder *decoder = opus_custom_decoder_create( opus_mode, 1, NULL );
opus_custom_decoder_init(decoder, opus_mode, 1);
netj.capture_srcs = jack_slist_append(netj.capture_srcs, decoder);
#endif
} else {
@@ -217,7 +216,6 @@ int JackNetOneDriver::AllocPorts()
opus_custom_encoder_ctl(oe, OPUS_SET_COMPLEXITY(10));
opus_custom_encoder_ctl(oe, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC));
opus_custom_encoder_ctl(oe, OPUS_SET_SIGNAL(OPUS_APPLICATION_RESTRICTED_LOWDELAY));
opus_custom_encoder_init(oe, opus_mode, 1);
netj.playback_srcs = jack_slist_append(netj.playback_srcs, oe);
#endif
} else {


+ 0
- 4
common/JackNetTool.cpp View File

@@ -749,10 +749,6 @@ namespace Jack
opus_custom_encoder_ctl(fOpusEncoder[i], OPUS_SET_COMPLEXITY(10));
opus_custom_encoder_ctl(fOpusEncoder[i], OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC));
opus_custom_encoder_ctl(fOpusEncoder[i], OPUS_SET_SIGNAL(OPUS_APPLICATION_RESTRICTED_LOWDELAY));

/* initilize decoders */
error = opus_custom_encoder_init(fOpusEncoder[i], fOpusMode[i], 1);
error = opus_custom_decoder_init(fOpusDecoder[i], fOpusMode[i], 1);
}

{


+ 0
- 2
common/netjack.c View File

@@ -406,7 +406,6 @@ void netjack_attach( netjack_driver_state_t *netj )
} else if( netj->bitdepth == OPUS_MODE ) {
#if HAVE_OPUS
OpusCustomDecoder *decoder = opus_custom_decoder_create( netj->opus_mode, 1, NULL );
opus_custom_decoder_init(decoder, netj->opus_mode, 1);
netj->capture_srcs = jack_slist_append(netj->capture_srcs, decoder );
#endif
} else {
@@ -471,7 +470,6 @@ void netjack_attach( netjack_driver_state_t *netj )
opus_custom_encoder_ctl(oe, OPUS_SET_COMPLEXITY(10));
opus_custom_encoder_ctl(oe, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC));
opus_custom_encoder_ctl(oe, OPUS_SET_SIGNAL(OPUS_APPLICATION_RESTRICTED_LOWDELAY));
opus_custom_encoder_init(oe, opus_mode, 1);
netj->playback_srcs = jack_slist_append(netj->playback_srcs, oe );
#endif
} else {


Loading…
Cancel
Save