Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/src/model/audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@ enum AudioCodec { celtAlpha, ping, speex, celtBeta, opus }

AudioCodec assertNotPing(AudioCodec codec) {
if (codec == AudioCodec.ping) {
throw new ArgumentError(
'A real AudioCodec is expected at this point, which AudioCodec.ping is not!');
throw new ArgumentError('A real AudioCodec is expected at this point, which AudioCodec.ping is not!');
} else {
return codec;
}
}

enum TalkMode { normal, whisperToChannel, whisperToUser }
enum TalkMode { normal, whisperToChannel, whisperToUser, proxyListen }

class PositionalInformation {
final double x, y, z;

const PositionalInformation(
{required this.x, required this.y, required this.z});
const PositionalInformation({required this.x, required this.y, required this.z});

operator [](int index) {
switch (index) {
Expand Down