Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-02-2009, 05:14 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
how to initiate aplay driver at first time when the system is booted

hi friends,

I am new to Linux ,problem is how to initiate the aplay driver at first time when the system booted .

I have used the aplay command to play the ".wav" files by using java ,while playing the wav file at first time ,its not playing entire file.The last word of the wav file is only playing.

The java code is
public class aplay_testing {

public static void main(String ars[]) {
try {

Runtime.getRuntime().exec("aplay sample.wav").waitFor();
} catch (Exception ex) {


For Example the sample.wav file having "wel come to Linux forum"

While playing the above file the last two words only playing at first time.The Next time there is no problem to play entire file.

Please help me to solve the problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to secure a partition in a triple booted system??? firewiz87 Linux - Security 7 12-30-2007 12:44 AM
USB Modem not working in slackware, but it did last time i booted... Tarwedge Linux - Hardware 1 05-18-2004 11:24 AM
System failed to initiate! paranoia1980 Linux - General 2 06-25-2003 05:48 PM
APLAY sucks CPU Time brianindium Linux - General 4 06-20-2003 03:10 PM
Can't boot past system trying to initiate PPP Linux - Networking 2 08-20-2001 12:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration