nsresult rv = aIStream->Read(buf, 1024, &amt);
aIStream->Read(buf, 1024, &amt);
    NS_IMETHOD OnDataAvailable(nsIChannel* channel,                                nsISupports* context,                               nsIInputStream *aIStream,                                PRUint32 aSourceOffset,                               PRUint32 aLength) {        PR_EnterMonitor(mMonitor);        char buf[1025];        while (aLength > 0) {            PRUint32 amt;            nsresult rv = aIStream->Read(buf, 1024, &amt);            buf[amt] = '\0';            printf(buf);            aLength -= amt;            gVolume += amt;        }        PR_ExitMonitor(mMonitor);        return NS_OK;    }