Giter Club home page Giter Club logo

Comments (8)

kingslay avatar kingslay commented on July 18, 2024 1

只在流开始的时候生效。两个流都没有禁音的话。那会同时输出两个流的声音。我没有在tvos上试,但是在mac上是可以同时播放两个流的。

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

我最新的代码已经会根据具体的音频格式进行切换了。

 if !(sourceNode?.inputFormat(forBus: 0).isChannelEqual(currentRender.audioFormat) ?? false) {
               runInMainqueue { [weak self] in
                   guard let self else {
                       return
                   }
                   self.ceateSourceNode(audioFormat: currentRender.audioFormat)
               }
               return
           }

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

I will let you know if it works. Recently my users have reported that the audio has a problem again and that 5.1 doesn't play in the rear speakers again. It used to work until 3 weeks ago.

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@kingslay Please reopen. This doesn't work.

Multi-view mode the sound doesn’t work correctly when you have mixed 2.0 and 5.1 streams.

Please try yourself playing 2 streams simultaneously, and mute/unmute one and then the other, you'll see that the sounds doesn't update correctly. i.e. only the last one works correctly, whereas the other one no.

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

我在macOS试了,不会有这个问题。你是在tvos上试的吗?你的设备的音响是双声道的,还是5.1声道的。

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

我没有 5.1的设备。所以我只能尝试修复下。你看下行不行

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@kingslay I don't have 5.1 equipment too, but the question is:

  • When is this code executed? Only at the start of the stream or every time the user mute / unmute a stream?
  • What happens if the user unmute 2 streams at the same time? Does it take into account the last unmuted stream output channels or the previous one?

from ksplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.