File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ namespace audio_tools {
35
35
*/
36
36
class FLACDecoder : public StreamingDecoder {
37
37
public:
38
- FLACDecoder (bool isFLAC=false ) {
39
- is_ogg = isFLAC;
38
+ // / Default Constructor
39
+ FLACDecoder (bool isOgg=false ) {
40
+ is_ogg = isOgg;
40
41
}
41
42
42
43
// / Destructor - calls end();
@@ -254,8 +255,10 @@ class FLACDecoder : public StreamingDecoder {
254
255
*/
255
256
class FLACEncoder : public AudioEncoder {
256
257
public:
257
- // / Empty Constructor - the output stream must be provided with begin()
258
- FLACEncoder () = default
258
+ // / Default Constructor
259
+ FLACEncoder (bool isOgg = false ) {
260
+ setOgg (isOgg);
261
+ }
259
262
260
263
// / Destructor - calls end();
261
264
~FLACEncoder () { end (); }
@@ -390,8 +393,8 @@ class FLACEncoder : public AudioEncoder {
390
393
Vector<FLAC__int32> buffer;
391
394
Print *p_print = nullptr ;
392
395
FLAC__StreamEncoder *p_encoder=nullptr ;
393
- bool is_open;
394
- bool is_ogg;
396
+ bool is_open = false ;
397
+ bool is_ogg = false ;
395
398
int flac_block_size = 512 ; // small value to minimize allocated memory
396
399
int flac_compression_level = 8 ;
397
400
You can’t perform that action at this time.
0 commit comments