Author Topic: Ошибка в проигрывании аудио  (Read 2964 times)

0 Members and 1 Guest are viewing this topic.

Marevo

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
    • View Profile
Ошибка в проигрывании аудио
« on: November 19, 2015, 03:53:48 PM »
не воспроизводятся аудиотреки, в чем может быть ошибка?

20.11.2015 0:20:15   730   doCommand:newcommandname
20.11.2015 0:20:15   730   action repeat set to: 1
20.11.2015 0:20:15   730   Action:  Audio.Play - E:\Music\003 Резидент - Мадагаскар.mp3
20.11.2015 0:20:15   730   [action] Audio.Play:E:\Music\003 Резидент - Мадагаскар.mp3

20.11.2015 0:20:15   750   Action ERROR: System.Runtime.InteropServices.COMException (0xC00D36C4): Исключение из HRESULT: 0xC00D36C4
   в NAudio.MediaFoundation.MediaFoundationInterop.MFCreateSourceReaderFromURL(String pwszURL, IMFAttributes pAttributes, IMFSourceReader& ppSourceReader)
   в NAudio.Wave.MediaFoundationReader.CreateReader(MediaFoundationReaderSettings settings)
   в NAudio.Wave.MediaFoundationReader..ctor(String file, MediaFoundationReaderSettings settings)
   в NAudio.Wave.MediaFoundationReader..ctor(String file)
   в vcPlugin.myAudio.playFileNameUsingMediaFoundation(String audioFileName)
   в vcPlugin.myAudio.playFile(String[] parsedParams)
   в vcPlugin.Plugin.doAction(String[] parsedActions, String[] parsedParams)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Ошибка в проигрывании аудио
« Reply #1 on: November 19, 2015, 04:21:59 PM »
Does the command work with other MP3 files?

It is probably a problem with the mp3 file's encoding.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Ошибка в проигрывании аудио
« Reply #2 on: November 19, 2015, 04:30:57 PM »
I think it's a bad mp3 but you can also try another action: Sound.PlayStream

Marevo

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Ошибка в проигрывании аудио
« Reply #3 on: November 20, 2015, 12:05:24 AM »
action: Sound.PlayStream works with the same mp3
tried Action: Audio.Play with the format .wav, works
some problems with mp3 playback in Action: Audio.Play
thank you for your answers!  :)