Giter Club home page Giter Club logo

Comments (6)

funny1624 avatar funny1624 commented on June 3, 2024

解决了,是这个文件的编码问题,转换一下就好了

from playerdemo.

itisyang avatar itisyang commented on June 3, 2024

文件编码问题一直都存在,因为同时要支持Linux,暂时没想到好的解决办法

from playerdemo.

funny1624 avatar funny1624 commented on June 3, 2024

@itisyang 大神的代码质量还是挺不错的,看起来很舒服,赞一个。有个问题,我用公司电脑跑这个demo的时候,播放器没有声音,用其它播放器有声音。把这个demo拿到自己笔记本上放的时候又是有声音的。用ffplay播放的时候也是没有声音,不知道是ffplay代码那块哪里没有初始化好,会提示以下信息:SDL_OpenAudio (2 channels, 48000 Hz): WASAPI can't initialize audio client:
SDL_OpenAudio (1 channels, 48000 Hz): WASAPI can't initialize audio client:
No more combinations to try, audio open failed

from playerdemo.

itisyang avatar itisyang commented on June 3, 2024

大概率驱动没装,或者扬声器坏的

from playerdemo.

funny1624 avatar funny1624 commented on June 3, 2024

@itisyang 已查明问题, 在audio_open入口处加上CoInitialize(NULL);可解决在windows上部分情况无声的问题

from playerdemo.

lidedongsn avatar lidedongsn commented on June 3, 2024

set SDL_AUDIODRIVER=directsound

from playerdemo.

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.