linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] SBC encoding Wav files
@ 2005-09-09 18:08 Joe Samuel
  2005-09-09 19:03 ` Victor Shcherbatyuk
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Samuel @ 2005-09-09 18:08 UTC (permalink / raw)
  To: Bluez-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] SBC encoding Wav files
  2005-09-09 18:08 [Bluez-devel] SBC encoding Wav files Joe Samuel
@ 2005-09-09 19:03 ` Victor Shcherbatyuk
  2005-09-09 22:32   ` Brad Midgley
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Shcherbatyuk @ 2005-09-09 19:03 UTC (permalink / raw)
  To: bluez-devel

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" <sjoe2@yahoo.com>
To: <Bluez-devel@lists.sourceforge.net>
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] SBC encoding Wav files
  2005-09-09 19:03 ` Victor Shcherbatyuk
@ 2005-09-09 22:32   ` Brad Midgley
  0 siblings, 0 replies; 3+ messages in thread
From: Brad Midgley @ 2005-09-09 22:32 UTC (permalink / raw)
  To: bluez-devel

hey

we just have a reference encoder. use another tool to convert to .au 
first. i'm not sure it's worth the effort to add more formats to the 
encoder when it's just for development.

to reiterate: we want the encoder to work transparently as a plugin 
inside alsa. maybe i'll be able to get back to that now.

brad

Victor Shcherbatyuk wrote:
> 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" <sjoe2@yahoo.com>
> To: <Bluez-devel@lists.sourceforge.net>
> 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


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-09 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-09 18:08 [Bluez-devel] SBC encoding Wav files Joe Samuel
2005-09-09 19:03 ` Victor Shcherbatyuk
2005-09-09 22:32   ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).