Skip to content

Commit 74ae8bf

Browse files
author
Valentin Noel
committed
Enable and update wrapper into audioRewrapper app
1 parent 7102412 commit 74ae8bf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/audioRewrapper/audioRewrapper.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ void rewrapAudio( const char* inputfilename, const char* outputFilename )
2121

2222
InputFile inputFile( inputfilename );
2323
inputFile.analyse();
24+
inputFile.readStream( 0 );
2425

2526
OutputFile outputFile( outputFilename );
2627

2728
outputFile.setup();
2829

2930
outputFile.addAudioStream( inputFile.getStream( 0 ).getAudioDesc() );
31+
32+
outputFile.beginWrap();
3033

3134
DataStream data;
3235

@@ -43,6 +46,7 @@ void rewrapAudio( const char* inputfilename, const char* outputFilename )
4346

4447
++frame;
4548
}
49+
outputFile.endWrap();
4650
std::cout << std::endl;
4751
}
4852

@@ -131,8 +135,8 @@ int main( int argc, char** argv )
131135

132136
try
133137
{
134-
//rewrapAudio( argv[1], argv[2] );
135-
transcodeAudio( argv[1], argv[2] );
138+
rewrapAudio( argv[1], argv[2] );
139+
// transcodeAudio( argv[1], argv[2] );
136140
}
137141
catch( std::exception &e )
138142
{

0 commit comments

Comments
 (0)