diff --git a/iamf/cli/audio_frame_generator.h b/iamf/cli/audio_frame_generator.h index 4739a10e..bac26071 100644 --- a/iamf/cli/audio_frame_generator.h +++ b/iamf/cli/audio_frame_generator.h @@ -63,8 +63,6 @@ class AudioFrameGenerator { * \param audio_frame_metadata Input audio frame metadata. * \param codec_config_metadata Input codec config metadata. * \param audio_elements Input Audio Element OBUs with data. - * \param output_wav_directory Directory to write the output wav files. - * \param file_name_prefix Prefix of output wav file names. * \param demixing_module Demixng module. * \param parameters_manager Manager of parameters. * \param global_timing_module Global Timing Module. @@ -76,14 +74,10 @@ class AudioFrameGenerator { iamf_tools_cli_proto::CodecConfigObuMetadata>& codec_config_metadata, const absl::flat_hash_map& audio_elements, - const std::string& output_wav_directory, - const std::string& file_name_prefix, const DemixingModule& demixing_module, ParametersManager& parameters_manager, GlobalTimingModule& global_timing_module) : audio_elements_(audio_elements), - output_wav_directory_(output_wav_directory), - file_name_prefix_(file_name_prefix), demixing_module_(demixing_module), parameters_manager_(parameters_manager), global_timing_module_(global_timing_module) { @@ -177,8 +171,6 @@ class AudioFrameGenerator { // to configure encoders. absl::flat_hash_map codec_config_metadata_; - const std::string output_wav_directory_; - const std::string file_name_prefix_; // Mapping from audio substream IDs to encoders. absl::flat_hash_map> diff --git a/iamf/cli/encoder_main_lib.cc b/iamf/cli/encoder_main_lib.cc index 64584d95..420e4867 100644 --- a/iamf/cli/encoder_main_lib.cc +++ b/iamf/cli/encoder_main_lib.cc @@ -328,9 +328,7 @@ absl::Status GenerateObus( AudioFrameGenerator audio_frame_generator( user_metadata.audio_frame_metadata(), - user_metadata.codec_config_metadata(), audio_elements, - output_wav_directory, - user_metadata.test_vector_metadata().file_name_prefix(), demixing_module, + user_metadata.codec_config_metadata(), audio_elements, demixing_module, parameters_manager, global_timing_module); RETURN_IF_NOT_OK(audio_frame_generator.Initialize()); diff --git a/iamf/cli/tests/audio_frame_generator_test.cc b/iamf/cli/tests/audio_frame_generator_test.cc index d41fa628..3d638427 100644 --- a/iamf/cli/tests/audio_frame_generator_test.cc +++ b/iamf/cli/tests/audio_frame_generator_test.cc @@ -125,10 +125,8 @@ void GenerateAudioFrameWithEightSamples( // Generate the audio frames. AudioFrameGenerator audio_frame_generator( user_metadata.audio_frame_metadata(), - user_metadata.codec_config_metadata(), audio_elements, - output_wav_directory, - /*file_name_prefix=*/"test", demixing_module, parameters_manager, - global_timing_module); + user_metadata.codec_config_metadata(), audio_elements, demixing_module, + parameters_manager, global_timing_module); // Initialize, iteratively add samples, generate frames, and finalize. EXPECT_EQ(expected_initialize_is_ok, audio_frame_generator.Initialize().ok());