Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Audio out, commandline and NSTask give different result?

Audio out, commandline and NSTask give different result?
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 19, 2002, 11:32 PM
 
I really lime mpg123, and I thought I'd make a nice little GUI wrapper for it so I don't need 30% processor utilization to listen to Weird Al or 80's music. Sounds good, running it from the commandline works well. But then everything falls apart when I use NSTask.

So I launch my NSThread, and I see printed out to stderr in the project builder window (i tried piping to a filehandle to see if it was stderr or stdout; it was the former). But, even though it loads the song, it just dies. No playing. The NSTask stops executing. I have no idea what's going on. I did roughly the same thing for tar-gzing files with NSTask, and it worked flawlessly, but something fishy is happening here.

So, does anyone got an idea about what's going on and how (if possible) I could fix it?

Thanks,
F-bacher
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Feb 20, 2002, 08:10 AM
 
Nevermind. I had to add @"--quiet" to the args... which I didn't habe to do for the commandline.

Oh well,
F-bacher
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2