Skip to content

Commit

Permalink
AudioInfo set default values
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 19, 2023
1 parent 200c765 commit 58aabf1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/AudioTools/AudioTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ struct AudioInfo {
//}
}

// public attributes
int sample_rate = 0; // undefined
int channels = 0; // undefined
int bits_per_sample=16; // we assume int16_t
/// Sample Rate: e.g 44100
int sample_rate = DEFAULT_SAMPLE_RATE;
/// Number of channels: 2=stereo, 1=mono
int channels = DEFAULT_CHANNELS;
/// Number of bits per sample (int16_t = 16 bits)
int bits_per_sample = DEFAULT_BITS_PER_SAMPLE;

};

Expand Down

0 comments on commit 58aabf1

Please sign in to comment.