Philippe GASSMANN

Results 12 comments of Philippe GASSMANN

Yes, it seems to be related. The initial purpose I was using `Sing::empty()` was to loop playback. I tried another approach using a `LoopedDecoder` to and it's looping way too...

BT of the thread that eats cpu: ``` Thread 8 (Thread 0xb5bfb3a0 (LWP 23791)): #0 0xb6e6ad30 in ?? () from /usr/lib/arm-linux-gnueabihf/libasound.so.2 RustAudio/rodio#1 0xb6e6ad24 in ?? () from /usr/lib/arm-linux-gnueabihf/libasound.so.2 Backtrace stopped:...

First, trying to rollback last master commit does does not compiles (cpal 0.12.1): ``` error[E0308]: mismatched types --> /cargo/registry/src/github.com-1ecc6299db9ec823/cpal-0.12.1/src/host/alsa/mod.rs:906:59 | 906 | BufferSize::Fixed(v) => hw_params.set_buffer_size(v as i64)?, | ^^^^^^^^ expected...

I started investigating on latest rasbian (debian buster) ``` Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster ``` This still does not work, but now, it's...

Full GDB backtrace: ``` (gdb) bt full #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 set = {__val = {0, 0, 0, 6429464, 6426208, 0, 3069453288, 0, 0, 0, 6426208, 6429464, 0, 0,...

Running in debug mode, with backtrace: ``` philou@elise-rbp-mini:~ $ RUST_BACKTRACE=1 ./rbp-rodio-bug-dbg ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture...

I've put a breakpoint right there, here is the output: ``` (gdb) info locals available_samples = 2462065856 delay_frames = 0 avail_frames = 1231032928 status = alsa::pcm::Status ([3, 0, 0, 0,...

@est31 not sure it is the right fix, it seems more like a cross compilation mess between i32 & i64 that leads to believe there is some available frames instead...

Hi, after digging a lot into cpal alsa code and reconstructed a poll loop outside of cpal ; I found what's causing the issue on raspberry PI: First, `stream.channel.revents(&descriptors[1..])` is...