Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Interix audio anyone?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Interix audio anyone? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Interix audio anyone? - Nov. 27, '05, 9:11:11 AM   
jon493

 

Posts: 56
Joined: Oct. 14, '05,
Status: offline
Can Interix support audio? On the face of it, there is no /dev/audio as such. Can anyone please direct me to the proper resource?
Post #: 1
RE: Interix audio anyone? - Nov. 27, '05, 12:15:02 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
There is no audio access (other than beeps).
The guy from Duh.Org (ToddV) has a library that does audio in a fashion if you have cygwin installed (as I understand).
With version 5.2 (SUA), similar to display driver access, audio can be accessed in mixed mode.

(in reply to jon493)
Post #: 2
RE: Interix audio anyone? - Dec. 4, '05, 5:49:13 AM   
jon493

 

Posts: 56
Joined: Oct. 14, '05,
Status: offline
There go my hopes of porting VLC to Interix

However, that would have been a fun project.

Correction: What am I despairing about? I am using Windows, right! VLC already works on Windows, and so do a gazillion other software. Better stick to scientific applications written by UNIXophiles who almost seem to go out of their way to ensure that their software cannot be used on Windows (lack of a free FORTRAN compiler is another reason).

(in reply to Rodney)
Post #: 3
RE: Interix audio anyone? - Mar. 23, '06, 10:01:19 PM   
breiter

 

Posts: 346
Joined: Jun. 14, '04,
From: Washington, DC
Status: offline
My understanding is that the reason there is no audio and for that matter why there is no Interx-based X server is that the Posix subsystem (psxss.exe) runs almost entirely in user mode (except for psxdrv.sys) and, therefore, has no direct access to hardware.

What ToddV did is pretty clever. He compiled esound in Interix with local sound support disabled. That lets you build Interix clients. He then grabbed the esound daemon (esd.exe) from the cygwin ports. You don't need cygwin to run it. Esd.exe just requires libaudiofile.dll and cygwin1.dll, not the whole Cygwin installation. It looks like he also has a script for /etc/init.d to autostart esd.exe.

The end result seems very analagous to the standard situation with X clients displayed on a Win32 X Server. Esd.exe is a Win32 process which is listening on a TCP socket. The Interix audio clients are compiled against libaudio, esound or whatever and talk to esd.exe over TCP.

With Interix 5.2+, I think it might be possible to build esd as a mixed-mode binary so that it calls the same Win32 APIs that the cygwin version uses but is otherwise an Interix binary. I happened to be on the phone with a couple of developers from the Interix team this week and they said that it should/could work but it is not a use case of mixed-mode binaries that they have tested. They did not know for sure if you can successfully use multimedia APIs in mixed-mode binaries.

< Message edited by breiter -- Mar. 23, '06, 10:07:07 PM >

(in reply to jon493)
Post #: 4
RE: Interix audio anyone? - Mar. 28, '06, 9:03:54 AM   
jerker_back

 

Posts: 68
Joined: Jul. 7, '05,
From: Sweden
Status: offline
quote:

VLC

That is VLC Media Player?
And you wanted to run VLC in a X-server under Interix?
That seems not very efficient to me regarding performance.

However, it would be very interesting to see how to play sounds in posix apps. For SUA mixed-mode apps there should be no problem using the DirectX DSound library. The new DirectX "Cross-Platform Audio Creation Tool" (XACT) and maybe the WinMM PlaySound will perhaps work in posix mode (even if part of the library is WIN32-dependent)? The problem with DirectX is the odd interface to the libraries, so it can not be quickly tested.
quote:

developers from the Interix team ... They did not know for sure if you can successfully use multimedia APIs in mixed-mode binaries.

I will try to test DirectX DSound in a mixed-mode app to see.

(in reply to breiter)
Post #: 5
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Interix audio anyone? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047