Skip to content

Commit

Permalink
roc-streaminggh-608: Disable surround and MTR in CLI
Browse files Browse the repository at this point in the history
Surround and multitrack layouts will be completed and enabled
in future releases. For now they're hidden from CLI.
  • Loading branch information
gavv committed Aug 21, 2024
1 parent 28b7d36 commit a304d63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/internal_modules/roc_audio/sample_spec_parse.rl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ bool parse_sample_spec_imp(const char* str, SampleSpec& sample_spec) {

format = [a-z0-9_]+ >start_token %set_format;
rate = [0-9]+ >start_token %set_rate;
channels = surround | mtr;
channels_DISABLED = surround | mtr;
channels = ('stereo' | 'mono') >start_token %set_surround_mask %set_surround;

main := ( ('-' | format) '/' ('-' | rate) '/' ('-' | channels) )
%{ success = true; }
Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_audio/test_sample_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ TEST(sample_spec, parse_format) {
}
}

TEST(sample_spec, parse_channels) {
IGNORE_TEST(sample_spec, parse_channels) {
{ // surround stereo
SampleSpec sample_spec;
CHECK(parse_sample_spec("s16/48000/stereo", sample_spec));
Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_rtp/test_encoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace rtp {

TEST_GROUP(encoding) {};

TEST(encoding, parse) {
IGNORE_TEST(encoding, parse) {
Encoding enc;
CHECK(parse_encoding("101:s18/48000/surround4.1", enc));

Expand Down

0 comments on commit a304d63

Please sign in to comment.