Return-Path: From: "pdjj14" To: , Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C61574.1A7F0740" In-Reply-To: <20060109093125.79949.qmail@web37004.mail.mud.yahoo.com> Subject: [Bluez-devel] a2play error... 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: Mon, 9 Jan 2006 23:26:19 +0900 This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C61574.1A7F0740 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable Hi~ My environment is 'Redhat9(kernel 2.4.20-8) + bluez-utils,-libs-2.24 + bluez-hcidump-1.18 + alsa-libs-1.0.10 + btsco-0.41 + mpg123-0.59r-4'. The module that I loaded is 'l2cap'. 'rfcomm' and 'sco' didn't be loaded. 'bluez' and 'hci_usb' already be loaded. When I type the command 'mpg123 --au - 01.mp3 | ./a2play -p 00:0d:e6:00:9a:2f' with option 'p(pthread)', I can listen the music. But, the music played just 3~5 seconds. If I type the command without option 'p', the music repeats 'play and pause'. And, the music played just 3~5 seconds. This is same to use the option 'p'. I want to listen the music to running time of the music. I am modifying the code 'a2play.c'. Is correct what I do? I want to know good methods. What do I do to solve my problem? =20 This is output, when I type the command 'mpg123 --au - 01.mp3 | = ./a2play - p 00:0d:e6:00:9a:2f' [root@wooki btsco-0.41]# mpg123 --au - 01.mp3 | ./a2play -p 00:0d:e6:00:9a:2f subbands =3D 8 blocks =3D 16 bitpool =3D 32 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, = 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by = Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT = YOUR OWN RISK! Title : 01 =C0=CC=BA=B0=BF=A1 =B4=EB=C3=B3=C7=CF=B4=C2 = =BF=EC=B8=AE=C0=C7 =C0=DA=BC=BC Artist: =C0=CC=BD=C2=C8=AF Album : =B3=A1=C0=E5 Live Concert Year : Comment: Genre : Other Playing MPEG stream from 01.mp3 ... Junk at the beginning 49443303 MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo len=3D2048 Header size=3D32 Sample Rate:44100 Channels:2 Using address: 00:0d:e6:00:9a:2f Found A2DP Sink Found A2DP Sink at the destination Connected [imtu 672, omtu 895, flush_to 65535] Sent the Stream End Point Discovery Command Got a Stream End Point Discovery Response received 1 capabilities SEID =3D 1 Requested Capabilities for SEID =3D 1 Got capabilities response Sent set configurations command Set configurations command accepted Sent open stream command Got open stream confirm Connected [imtu 672, omtu 895, flush_to 65535] Sent stream start Got start stream confirm write failed: Connection reset by peer Sent 354 packets joining thread closing rtc closing stream closing control connection =20 Thank you... Have a nice day~ =20 ------=_NextPart_000_0018_01C61574.1A7F0740 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable

Hi~=

 My = environment is 'Redhat9(kernel 2.4.20-8) + bluez-utils,-libs-2.24 + bluez-hcidump-1.18 = + alsa-libs-1.0.10 + btsco-0.41 + = mpg123-0.59r-4'.

 The = module that I loaded is 'l2cap'.

 'rfcomm' = and 'sco' didn't be loaded.

 'bluez' = and 'hci_usb' already be loaded.

 When I = type the command 'mpg123 --au - 01.mp3 | ./a2play -p 00:0d:e6:00:9a:2f' with option 'p(pthread)', I can listen the = music.

 But, the = music played just 3~5 seconds.

 If I = type the command without option 'p', the music repeats 'play and pause'. And, the music = played just 3~5 seconds. This is same to use the option = 'p'.

 I want = to listen the music to running time of the music.

 I am = modifying the code 'a2play.c'.

 Is = correct what I do?

 I want = to know good methods.

 What do = I do to solve my problem?

 

 This is = output, when I type the command 'mpg123 --au - 01.mp3 | ./a2play -p 00:0d:e6:00:9a:2f'

    &nbs= p;        [root@wooki btsco-0.41]# mpg123 --au - 01.mp3 | ./a2play -p =             &= nbsp;           &n= bsp;        00:0d:e6:00:9a:2f

    &nbs= p;        subbands =3D 8 blocks =3D 16 bitpool =3D 32

    &nbs= p;        High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and = 3.

    &nbs= p;        Version 0.59r (1999/Jun/15). Written and copyrights by Michael = Hipp.

    &nbs= p;        Uses code from various people. See 'README' for more!

    &nbs= p;        THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN =      RISK!

    &nbs= p;        Title  : 01 =C0=CC=BA=B0=BF=A1 =B4=EB=C3=B3=C7=CF=B4=C2 =BF=EC=B8=AE=C0=C7 =C0=DA=BC=BC  Artist: =C0=CC=BD=C2=C8=AF<= /p>

    &nbs= p;        Album  : =B3=A1=C0=E5 Live = Concert           =     Year  :

    &nbs= p;        = Comment:           = ;            =           Genre : Other

    &nbs= p;        Playing MPEG stream from 01.mp3 ...

    &nbs= p;        Junk at the beginning 49443303

    &nbs= p;        MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo

    &nbs= p;        len=3D2048

    &nbs= p;        Header size=3D32

    &nbs= p;        Sample Rate:44100

    &nbs= p;        = Channels:2

    &nbs= p;        Using address: 00:0d:e6:00:9a:2f

    &nbs= p;        Found A2DP Sink

    &nbs= p;        Found A2DP Sink at the destination

    &nbs= p;        Connected [imtu 672, omtu 895, flush_to 65535]

    &nbs= p;        Sent the Stream End Point Discovery Command

    &nbs= p;        Got a Stream End Point Discovery Response

    &nbs= p;        received 1 capabilities

    &nbs= p;        SEID =3D = 1

    &nbs= p;        Requested Capabilities for SEID =3D 1

    &nbs= p;        Got capabilities response

    &nbs= p;        Sent set configurations command

    &nbs= p;        Set configurations command accepted

    &nbs= p;        Sent open stream command

    &nbs= p;        Got open stream confirm

    &nbs= p;        Connected [imtu 672, omtu 895, flush_to 65535]

    &nbs= p;        Sent stream start

    &nbs= p;        Got start stream confirm

    &nbs= p;        write failed: Connection reset by peer

    &nbs= p;        Sent 354 packets

    &nbs= p;        joining thread

    &nbs= p;        closing = rtc

    &nbs= p;        closing stream

    &nbs= p;        closing control connection

 

Thank = you...

Have a nice = day~

 =

------=_NextPart_000_0018_01C61574.1A7F0740-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel