Re: replaced ringtone but it plays it really funny way

2008-07-22 Thread Yaroslav Halchenko
ah... probably now dialer is 'configured' to assume that ringtone is
just a second or so... thus every other second (if call is not dropped
yet) it sends a new notification to pulse to play the ring tone. ho ho

so there is no native way seems to me to 

* provide natively long ringtone (at least 5 sec)

* interrupt 'active' ringtone if it is already playing, which limits us
  just to short ringtones, initiated every X seconds from the dialer.

I haven't tried ASU to that amount of detail but is it doing the same??

looking at openmoko-dialer2/./src/phone-kit/moko-notify.c all logic
seems to be there right actually (I am not sure if that is ASU's or
2008.2's dialer now... can't think straight now), so it might simply be
a bug? btw - music doesn't stop for me even if I interrupt the call,
thus I guess pulse doesn't get any 'interrupt' notifications



On Tue, 22 Jul 2008, Yaroslav Halchenko wrote:

 the mystery of effect 'multiple instances' is somewhat revealed.. pulse
 audio indeed creates multiple inputs for some reason... I dunno why.
 I converted that file to stereo using sox (thought it would resolve the
 issue). converting to 44800 sampling rate was bogus since then pulse
 reported that file is too large... so with regular 22050 sampling pulse
 says:

 I: resampler.c: Using resampler 'trivial'
 I: resampler.c: Using s16le as working format.
 I: sink-input.c: Created input 1 sample:ringtone on output with sample spec 
 s16le 2ch 22050Hz and channel map front-left,front-right
 I: resampler.c: Using resampler 'trivial'
 I: resampler.c: Using s16le as working format.
 I: sink-input.c: Created input 2 sample:ringtone on output with sample spec 
 s16le 2ch 22050Hz and channel map front-left,front-right
 I: resampler.c: Using resampler 'trivial'
 I: resampler.c: Using s16le as working format.
 I: sink-input.c: Created input 3 sample:ringtone on output with sample spec 
 s16le 2ch 22050Hz and channel map front-left,front-right
 I: sink-input.c: Freeing output 1 sample:ringtone
 I: sink-input.c: Freeing output 2 sample:ringtone
 I: sink-input.c: Freeing output 3 sample:ringtone


 does any one have a clue why?

 On Mon, 21 Jul 2008, Yaroslav Halchenko wrote:

  So I did a blind copy of my ringtone (you can sample it from 
  http://www.onerussian.com/tmp/v_mir_jiv.wav) by copying over
  /usr/share/openmoko/sounds/ringtone_classy.wav
  which is
  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 22050 Hz

  whenever original was
  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 
  Hz

  after reboot it plays but incorrectly, it stutter, and even sounds like
  multiple instances playing simultaneously.  So, I wonder what is the
  reason -- is that a feature or a bug

  I am running 2008.2 from yesteday
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: replaced ringtone but it plays it really funny way

2008-07-22 Thread Jay Vaughan



 after reboot it plays but incorrectly, it stutter, and even sounds  
 like
 multiple instances playing simultaneously.  So, I wonder what is the
 reason -- is that a feature or a bug
 RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo  
 44100 Hz

^^^ sample rate is wrong.  Pulseaudio is set up for 48khz.

;
--
Jay Vaughan





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: replaced ringtone but it plays it really funny way

2008-07-22 Thread Yaroslav Halchenko
nah... that is though the first thing I thought -- pulse is there to
do resampling if needed. I think that my suspicion (said in my prev
email to the thread) is the root -- dialer's logic is a big weaked and
it doesn't really get idea either the sound has finished playing within
its timeout of 500ms (or 1500ms), thus it manages to start 3 requests to
play the same sound

On Tue, 22 Jul 2008, Jay Vaughan wrote:




  after reboot it plays but incorrectly, it stutter, and even sounds  
  like
  multiple instances playing simultaneously.  So, I wonder what is the
  reason -- is that a feature or a bug
  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo  
  44100 Hz

 ^^^ sample rate is wrong.  Pulseaudio is set up for 48khz.

 ;
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: replaced ringtone but it plays it really funny way

2008-07-21 Thread Yaroslav Halchenko
the mystery of effect 'multiple instances' is somewhat revealed.. pulse
audio indeed creates multiple inputs for some reason... I dunno why.
I converted that file to stereo using sox (thought it would resolve the
issue). converting to 44800 sampling rate was bogus since then pulse
reported that file is too large... so with regular 22050 sampling pulse
says:

I: resampler.c: Using resampler 'trivial'
I: resampler.c: Using s16le as working format.
I: sink-input.c: Created input 1 sample:ringtone on output with sample spec 
s16le 2ch 22050Hz and channel map front-left,front-right
I: resampler.c: Using resampler 'trivial'
I: resampler.c: Using s16le as working format.
I: sink-input.c: Created input 2 sample:ringtone on output with sample spec 
s16le 2ch 22050Hz and channel map front-left,front-right
I: resampler.c: Using resampler 'trivial'
I: resampler.c: Using s16le as working format.
I: sink-input.c: Created input 3 sample:ringtone on output with sample spec 
s16le 2ch 22050Hz and channel map front-left,front-right
I: sink-input.c: Freeing output 1 sample:ringtone
I: sink-input.c: Freeing output 2 sample:ringtone
I: sink-input.c: Freeing output 3 sample:ringtone


does any one have a clue why?

On Mon, 21 Jul 2008, Yaroslav Halchenko wrote:

 So I did a blind copy of my ringtone (you can sample it from 
 http://www.onerussian.com/tmp/v_mir_jiv.wav) by copying over
 /usr/share/openmoko/sounds/ringtone_classy.wav
 which is
 RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 22050 Hz

 whenever original was
 RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

 after reboot it plays but incorrectly, it stutter, and even sounds like
 multiple instances playing simultaneously.  So, I wonder what is the
 reason -- is that a feature or a bug

 I am running 2008.2 from yesteday
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community