Skip to content

Commit

Permalink
fix: set record callback interval to 20ms
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzz-dev committed Jan 28, 2024
1 parent 153024d commit 611983c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSoundInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ AltVoiceError CSoundInput::SelectDeviceByUID(const char* uid)

recording = true;

recordChannel = BASS_RecordStart(SAMPLE_RATE, AUDIO_CHANNELS, 0, OnSoundFrame, this);
recordChannel = BASS_RecordStart(SAMPLE_RATE, AUDIO_CHANNELS, MAKELONG(0, 20), OnSoundFrame, this);
BASS_ChannelSetAttribute(recordChannel, BASS_ATTRIB_GRANULE, FRAME_SIZE_SAMPLES);

// Change input volume
Expand Down

0 comments on commit 611983c

Please sign in to comment.