Re: [OS/2] ao fixes due to switch from AVFifoBuffer to AVFifi
Alexander Strasser <[email protected]> Mon, 30 Sep 2024 21:29:23 +0200
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2024-09-27 18:30 +0900, KO Myung-Hun wrote: > Alexander Strasser wrote: > > On 2024-09-26 16:55 +0200, Nicolas George wrote: > >> Dave Yeo (12024-09-25): > >>> Hi, this diff is needed to fix compilation on OS/2. Based on the changes to > >>> ao_sdl, > >> > >> This patch looks legit. I cannot test, but I can push if nobody objects. > > > > Just reviewed the patch... > > > > IMHO it is OK to push if Dave can confirm it works. > > I mean not only builds, but actual audio output is acceptable. > > > > I have the suspicion that it's not fully correct. > > How does the playback work for OS/2 dart/kai? > > Is it possible that the playback thread runs in parallel to the mplayer > > thread? > > > > As Dave said, libdart which is used by ao_dart and libkai which is used > by ao_kai run its own threads to playback audio streams. If that's the current code is, to my understanding, not fully correct. The FIFO code must be safely usable by 2 threads concurrently for this kind of architecture to work correctly. But if you tested it and it worked for you, I'm not opposed to having this committed to MPlayer SVN. When I ever get the time to look into jack again, I will consider providing a safe FIFO implementation for this use case. Anyway maybe I'm mixing some things up here and are a bit confused myself... Best regards, Alexander