add 16int audio recorder
This commit is contained in:
parent
310e028739
commit
706bde4d58
7 changed files with 125 additions and 42 deletions
|
|
@ -11,7 +11,6 @@ interface AudioPath {
|
|||
}
|
||||
export default function useStreamVisualizer(draw: Ref<boolean>) {
|
||||
const audioContext = new AudioContext();
|
||||
console.log('audi sample rate', audioContext.sampleRate)
|
||||
const analyzer = audioContext.createAnalyser();
|
||||
analyzer.fftSize = 128;
|
||||
const bufferLength = analyzer.frequencyBinCount;
|
||||
|
|
|
|||
Loading…
Reference in a new issue