Fix comments
This commit is contained in:
parent
b5d32d92f3
commit
dafa8786a1
3 changed files with 6 additions and 8 deletions
|
@ -55,10 +55,10 @@ export default class VoiceRecordComposerTile extends React.PureComponent<IProps,
|
||||||
const recorder = new VoiceRecorder(MatrixClientPeg.get());
|
const recorder = new VoiceRecorder(MatrixClientPeg.get());
|
||||||
await recorder.start();
|
await recorder.start();
|
||||||
this.props.onRecording(true);
|
this.props.onRecording(true);
|
||||||
// TODO: Run through EQ component
|
// TODO: @@ TravisR: Run through EQ component
|
||||||
recorder.rawData.onUpdate((frame) => {
|
// recorder.rawData.onUpdate((frame) => {
|
||||||
console.log('@@ FRAME', frame);
|
// console.log('@@ FRAME', frame);
|
||||||
});
|
// });
|
||||||
this.setState({recorder});
|
this.setState({recorder});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -28,5 +28,3 @@ export function resetSkin() {
|
||||||
export function getComponent(componentName) {
|
export function getComponent(componentName) {
|
||||||
return Skinner.getComponent(componentName);
|
return Skinner.getComponent(componentName);
|
||||||
}
|
}
|
||||||
|
|
||||||
import "./voice/VoiceRecorder"; // TODO: @@ REMOVE
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ export class VoiceRecorder {
|
||||||
|
|
||||||
public constructor(private client: MatrixClient) {
|
public constructor(private client: MatrixClient) {
|
||||||
this.recorder.ondataavailable = (a: ArrayBuffer) => {
|
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);
|
console.log(a);
|
||||||
const buf = new Uint8Array(a);
|
const buf = new Uint8Array(a);
|
||||||
const newBuf = new Uint8Array(this.buffer.length + buf.length);
|
const newBuf = new Uint8Array(this.buffer.length + buf.length);
|
||||||
|
@ -111,7 +111,7 @@ export class VoiceRecorder {
|
||||||
return this.mxc;
|
return this.mxc;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: @@ REMOVE
|
// TODO: @@ TravisR: REMOVE
|
||||||
public async test() {
|
public async test() {
|
||||||
this.start()
|
this.start()
|
||||||
.then(() => sleep(5000))
|
.then(() => sleep(5000))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue