Skip to content

Commit 541a5f5

Browse files
committed
Log SoundGenerator audio info
1 parent 801a764 commit 541a5f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AudioEffects/SoundGenerator.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ class SoundGenerator {
3535
LOGD(LOG_METHOD);
3636
active = true;
3737
activeWarningIssued = false;
38-
//info.bits_per_sample = sizeof(T)*8;
38+
LOGI("bits_per_sample: %d", info.bits_per_sample);
39+
LOGI("channels: %d", info.channels);
40+
LOGI("sample_rate: %d", info.sample_rate);
3941
return true;
4042
}
4143

@@ -478,7 +480,7 @@ class GeneratorFromArray : public SoundGenerator<T> {
478480
};
479481

480482
/**
481-
* @brief A sine generator based on a table. The table is created based using degress where one full wave is 360 degrees
483+
* @brief A sine generator based on a table. The table is created based using degress where one full wave is 360 degrees.
482484
* @author Phil Schatzmann
483485
* @copyright GPLv3
484486
*/

0 commit comments

Comments
 (0)