Author Topic: AAC stream playback problem  (Read 2849 times)

0 Members and 1 Guest are viewing this topic.

pioneer

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
AAC stream playback problem
« on: March 10, 2016, 08:18:13 PM »
Hi James.
I've encountered a problem with AAC-format audio stream playback. For example, when I try to play an internet radio, VC starts recieving traffic, but won't play the audio. Only a snap comes out in the beginning and there is silence after that. Yet it keeps downloading the audio stream. And even when I stop the playback, it doesn't stop recieving internet-traffic, and the following error comes up in the log (see the screencap). It feels like it can't fill up the buffer in time and thus only makes one short snap. Works fine with mp3 stream.

VC 2.2.1.4
« Last Edit: March 10, 2016, 08:21:34 PM by pioneer »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: AAC stream playback problem
« Reply #1 on: March 11, 2016, 08:29:33 AM »
Thanks.

We will update the action description to indicate that it should only be used for wav and mp3 streams.

VoxCommando's primary function is not intended to be that of a media player.

pioneer

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: AAC stream playback problem
« Reply #2 on: March 20, 2016, 07:55:34 PM »
Sound.PlayStream( mp3, 44100 Hz, stereo, 320 kb/s )
-- OK

Sound.StopStream
-- Unexpected error in action: Sound.StopStream

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at eval_g.eval_ᜃ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_g.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)



VC 2.2.1.4

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: AAC stream playback problem
« Reply #3 on: March 20, 2016, 08:39:59 PM »
There was a known bug with Sound.StopStream. You should upgrade to 2.2.1.6

http://voxcommando.com/mediawiki/index.php?title=ChangeLog#Version_2.2.1.6
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)

pioneer

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: AAC stream playback problem
« Reply #4 on: March 21, 2016, 04:45:09 AM »
Hi, nime5ter. Ok, thanks.

pioneer

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: AAC stream playback problem
« Reply #5 on: March 21, 2016, 09:17:45 AM »
Oops  ;)

VC 2.2.1.6

Unexpected error in action: Sound.GetStreamInfo
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at eval_g.eval_ᜂ(macroElement A_0, List`1 A_1, Int32 A_2)
   at eval_g.eval_ᜁ(macroElement A_0, List`1 A_1, Int32 A_2)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: AAC stream playback problem
« Reply #6 on: March 21, 2016, 09:40:11 AM »
It's a small bug that I will fix but you can still use this action by sending a dummy parameter.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.7-->
<command id="-1" name="Actions copied from LCB">
  <action>
    <cmdType>Sound.GetStreamInfo</cmdType>
    <params>
      <param>null</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>
« Last Edit: March 21, 2016, 10:10:29 AM by nime5ter »

pioneer

  • Jr. Member
  • **
  • Posts: 11
  • Karma: 0
    • View Profile
Re: AAC stream playback problem
« Reply #7 on: March 21, 2016, 09:49:17 AM »
Thanks James.