mirror of https://github.com/vector-im/riot-web
Fix comments
parent
b5d32d92f3
commit
dafa8786a1
|
@ -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});
|
||||
};
|
||||
|
||||
|
|
|
@ -28,5 +28,3 @@ export function resetSkin() {
|
|||
export function getComponent(componentName) {
|
||||
return Skinner.getComponent(componentName);
|
||||
}
|
||||
|
||||
import "./voice/VoiceRecorder"; // TODO: @@ REMOVE
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue