Fix comments

pull/21833/head
Travis Ralston 2021-03-16 23:01:37 -06:00
parent b5d32d92f3
commit dafa8786a1
3 changed files with 6 additions and 8 deletions

View File

@ -55,10 +55,10 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
const recorder = new VoiceRecorder(MatrixClientPeg.get());
await recorder.start();
this.props.onRecording(true);
// TODO: Run through EQ component
recorder.rawData.onUpdate((frame) => {
console.log('@@ FRAME', frame);
});
// TODO: @@ TravisR: Run through EQ component
// recorder.rawData.onUpdate((frame) => {
// console.log('@@ FRAME', frame);
// });
this.setState({recorder});
};

View File

@ -28,5 +28,3 @@ export function resetSkin() {
export function getComponent(componentName) {
return Skinner.getComponent(componentName);
}
import "./voice/VoiceRecorder"; // TODO: @@ REMOVE

View File

@ -39,7 +39,7 @@ export class VoiceRecorder {
public constructor(private client: MatrixClient) {
this.recorder.ondataavailable = (a: ArrayBuffer) => {
// TODO: @@ We'll have to decode each frame and convert it to an EQ to observe
// TODO: @@ TravisR: We'll have to decode each frame and convert it to an EQ to observe
console.log(a);
const buf = new Uint8Array(a);
const newBuf = new Uint8Array(this.buffer.length + buf.length);
@ -111,7 +111,7 @@ export class VoiceRecorder {
return this.mxc;
}
// TODO: @@ REMOVE
// TODO: @@ TravisR: REMOVE
public async test() {
this.start()
.then(() => sleep(5000))