• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: SNOW-271
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Merov Linden
Reporter: Tammy Nowotny
Votes: 1
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
6. Second Life Snowglobe - SNOW
SNOW-222

no streaming audio, etc. with Snowglobe Test Build

Created: 05/Oct/09 06:31 PM   Updated: 20/Oct/09 03:59 PM
Component/s: Sound
Affects Version/s: Snowglobe 1.2
Fix Version/s: Snowglobe 1.2

Time Tracking:
Not Specified

File Attachments: 1. Text File SNOW-271-llmediaremotectrl.patch (0.9 kB)

Environment:
Snowglobe 1.2.0 (2837) Oct 2 2009 18:30:18 (Snowglobe Test Build)
Release Notes

Built with GCC version 40001

You are at 259898.3, 251806.4, 89.1 in Okemo Canyon located at sim4243.agni.lindenlab.com (216.82.53.147:12035)
Second Life Server 1.30.0.133784
Release Notes

CPU: PowerPC 7450 (1416 MHz)
Memory: 1024 MB
OS Version: Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh
Graphics Card Vendor: ATI Technologies Inc.
Graphics Card: ATI Radeon 9200 OpenGL Engine
OpenGL Version: 1.3 ATI-1.4.18

libcurl Version: libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
J2C Decoder Version: OpenJPEG: 1.3.0, Runtime: 1.3.0
Audio Driver Version: FMOD version 3.750000
Qt Webkit Version: 4.5.2
Packets Lost: 779/4406 (17.7%)
Issue Links:
Duplicate
 
Relates
 

Last Triaged: 06/Oct/09 05:05 PM


 Description  « Hide
Streaming audio and other sound functions have worked with earlier Snowglobe 1.2.0 test builds. But most (but not all) sound functionality doesn't work with 1.2.0.2837, apparently because a Quicktime media plugin is missing.

Audio widget is grey even if audio is enabled in prefs and even if there is audio on parcel. Case in point:

http://slurl.com/secondlife/Okemo%20Canyon/69/168/66

where the audio stream is (or should be):

http://orange.neostreams.info:12978

(Setting the audio stream is problematic with this viewer.)

Video widget looks normal until you try to play a video; then the widget greys out when the video-playing routine crashes. Error dialog complains about being unable to play mime file.

Ambient sounds— including sound gestures— seem to work normally. (This surprises me, since sound gestures use Quicktime sound files.)

Voice widget functions normally: however, when you turn on the mic and speak, no sound goes into the voice system.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Aimee Trescothick added a comment - 05/Oct/09 06:50 PM
There is a known issue we came across while doing the SNOW-222 merge, in that to play the audio stream you have to first play media to enable the audio play button, does it work at all if you do that? I was hoping to fix it before the merge but didn't get there in time.

Ambient sound isn't normally played using Quicktime anyway, so that will still work without it.


Tammy Nowotny added a comment - 05/Oct/09 07:30 PM - edited
Actually, pressing the video widget button does re-enable streaming audio. yayy!

I am not sure if just trying to play a video is enough to do the trick: there seem to be other conditions which have to be met before audio comes on. The audio stutters a lot and the computer runs really slowly after audio fires back up.'

Voice behaves the same way after the audio returns: i.e., it acts normal except it doesn't hear the microphone.


Merov Linden added a comment - 06/Oct/09 03:04 PM
Yes, the audio widget is messed up post SNOW-222 commit and that on all platforms and it's annoying the hell of a lot of people (most reported issue so far).
Good news: it's the same problem with the most recent internal LL branch so it's not a merge issue I did. Bad news: we still have to figure out a fix in Snowglobe :/

Merov Linden added a comment - 06/Oct/09 11:22 PM
Funny: I looked at the code in lloverlaybar and llmediaremotectrl and I see why it doesn't work... Actually, I wonder how it ever worked at that point... I've seen in the past inconsistent display for those buttons myself and I never understood the difference between pause and stop (in the code, there's none...). I'm willing to rewrite this a minima (i.e. without rearchitecturing the whole darn thing, just make it work). I'd appreciate though if people would point me to other known reported bug related to this UI.

TriloByte Zanzibar added a comment - 07/Oct/09 03:53 PM
Yeah, streaming audio 'broke' for me the minute the media API stuff was added. Controls were ghosted out in all builds from 2826 to 2850, further testing revealed that it could be un-ghosted through a combination of playing with preferences (toggling audio on/off), and using the play media button as a master control. That is, in some instances if you hit play media, the streaming audio controls would become un-ghosted, allowing you to play the parcel's streaming media. Though after hitting play, if you hit stop on the media controls, the audio controls would re-ghost.

However streaming audio has been working for me again in 1.2.0 build 2850 (Mac version).


TriloByte Zanzibar added a comment - 07/Oct/09 09:54 PM
Broken again with 2863. Dropping back down to 2850, and streaming doesn't appear to be working properly there anymore either. Quitting and dropping AGAIN, this time back down to 2826, and hoping somebody QC's streaming audio next time. Broken streaming audio is a showstopper, IMHO it's not worth building/publishing unless that works.

Merov Linden added a comment - 08/Oct/09 09:43 AM - edited
Patch attached. The gist: the old code had a bug that disabled "media" instead of "music" if the mime-type was nill or none/none. This was "fixed" blindly but not tested. The problem is that the mime-type is updated very late (10 seconds or more) after the stream starts so, in effect, testing the mime-type does not work. The patch just suppress that test. It seems that simply testing the existence of the gAudiop instance is enough.

Requesting review from sldev contributors.


Thickbrick Sleaford added a comment - 08/Oct/09 10:20 AM
Looks good to me, and the play button now works... However, I'm still not getting playback because of SNOW-277.

Nitpicking the comment though, enabling the button now depends on gAudiop AND the music url not being empty...


Merov Linden added a comment - 08/Oct/09 11:48 AM
Thanks for the code review Thickbrick. I think SNOW-277 though is about audio media which is using the new plugin system while this bug is about streaming audio which implementation has not changed (still using fmod). I'll be commenting on 277 as well.
Will be committing the attached patch immediately.

lindenrobot added a comment - 08/Oct/09 11:50 AM
Revision 2866 by merov.linden on 2009-10-08 13:50:41 -0500 (Thu, 08 Oct 2009)

SNOW-271: Fixed the streaming audio UI widgets enabling/disabling. Reviewed by Thickbrick.

Files affected:
U projects/2009/snowglobe/trunk/indra/newview/llmediaremotectrl.cpp


Thickbrick Sleaford added a comment - 08/Oct/09 01:43 PM
@Merov: The thing is, on Linux fmod isn't being used anymore, instead gstreamer is used for both Parcel Media (movies AND audio) and Parcel Music (audio only), AFAIK.

Hmm, BTW, I just looked, and libfmod-3.75.so IS being packaged in the binaries from LL for both Snowglobe and 1.23, but I think it's not doing anything in either. Linux users would notice if it were, since fmod on Linux uses OSS sound by default, which tends to hog the sound card, preventing anything else from playing audio.