You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(only Android operating system)i use flutter_sound: 9.17.8 to record and play here is important part of code. I use
the same app on two phones first record second play. It works i hear sound
I get something like this
"Audio packet Lost !"
" releaseBuffer() track 0xc2a30400 disabled due to previous underrun, restarting"
but after when i stop send sound via udp on first phone app in second phone stop working i get this exception
releaseBuffer() track 0xc2a30400 disabled due to previous underrun, restarting
F/AudioTrackShared(11140): Assertion failed: !(stepCount <= mUnreleased && mUnreleased <= mFrameCount)
F/libc (1750): Fatal signal 6 (SIGABRT), code -6 in tid 1574 (Thread-267)
udp = await RawDatagramSocket.bind(
InternetAddress(mojip),
int.parse( mojport.text));
await Permission.microphone.request();
StreamController<Uint8List> audioStreamController = StreamController<Uint8List>();
await recorder.openRecorder();
await recorder.startRecorder(
toStream: audioStreamController.sink ,
codec: Codec.pcm16,
sampleRate: 16000, // Częstotliwość próbkowania44100 było
numChannels: 1, // Liczba kanałów (mono)
);
await recorder.pauseRecorder();
List<int>lista=[];
audioStreamController.stream.listen((buffer) {
lista+=buffer;//buffer has size about 500 bytes
if(lista.length>10000-1000)
{
udp.send(lista, InternetAddress(cnt.text),int.parse(cnt2.text));
lista.clear();
}
});
final player = FlutterSoundPlayer();
await player.openPlayer();
await player.startPlayerFromStream
(bufferSize: 10000,
codec: Codec.pcm16 ,// Actually this is the only codec possible
numChannels: 1, // Actually this is the only value possible. You cannot have several channels.
sampleRate: 16000 // This parameter is very important if you want to specify your own sample rate
);
udp.listen((data)async{
var zm=udp.receive();
if(zm!=null){
if(zm.data.length>0)
await player.feedFromStream(zm.data);
}
});
The text was updated successfully, but these errors were encountered:
(only Android operating system)i use flutter_sound: 9.17.8 to record and play here is important part of code. I use
the same app on two phones first record second play. It works i hear sound
I get something like this
"Audio packet Lost !"
" releaseBuffer() track 0xc2a30400 disabled due to previous underrun, restarting"
but after when i stop send sound via udp on first phone app in second phone stop working i get this exception
releaseBuffer() track 0xc2a30400 disabled due to previous underrun, restarting
F/AudioTrackShared(11140): Assertion failed: !(stepCount <= mUnreleased && mUnreleased <= mFrameCount)
F/libc (1750): Fatal signal 6 (SIGABRT), code -6 in tid 1574 (Thread-267)
Build fingerprint:
Revision: '2'
pid: 17840, tid: 19374, name: Thread-267 >>> com.example.x <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'Assertion failed: !(stepCount <= mUnreleased && mUnreleased <= mFrameCount)'
The text was updated successfully, but these errors were encountered: