Return-Path: Message-ID: <000a01c5b571$377ba870$0201a8c0@NBVICTOR> From: "Victor Shcherbatyuk" To: References: <20050909180813.27679.qmail@web34104.mail.mud.yahoo.com> Subject: Re: [Bluez-devel] SBC encoding Wav files MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri, 9 Sep 2005 21:03:51 +0200 Joe, If .pcm works and .wav doesn't, must be something with audio parameters extracted from wav header? I've never tried wav's and the earliest I can is the week after the next week... May be Brad has some ideas? Regards, Victor. ----- Original Message ----- From: "Joe Samuel" To: Sent: Friday, September 09, 2005 20:08 Subject: [Bluez-devel] SBC encoding Wav files > Hi, > Why is the sbc code accepting only au? > I tried a PCM wav file, changed the endianness here: > for (ch = 0; ch < sbc->channels; ch++) { > int16_t s = *((short *)ptr); > ptr += 2; > priv->frame.pcm_sample[ch][i] = s; > } > > And of course, changed the header reading part; but it > looks like things are not as simple as that. The > encoded file sounds horrible (rather I would say, it > had nothing in it that sounds like the original). > Did I miss out something? > > regards, > Joe > > > > > > > > > ___________________________________________________________ > Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with > voicemail http://uk.messenger.yahoo.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel