Re: Sound-Library

Bernhard Walle <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
* Stefan Hundhammer <[email protected]> [2004-10-29 13:52]:
> On Friday 29 October 2004 13:38, Bernhard Walle wrote:
> > kennt jemand eine portable (Linux: ALSA/OSS, Windows) Library für C++
> > (C wäre auch Ok), mit der man Sound abspielen kann, der roh in
> > einzelnen Samples vorliegt.  Also sowas wie ALSA mit
> > /usr/share/doc/packages/alsa-docs/_2test_2pcm_8c-example.html (SuSE,
> > Paket alsa-docs) macht.
> 
> Was spricht gegen 
> 
> 	system( "/usr/bin/aplay sound.wav" );
> 
> ?

Dass ich die Daten nicht WAV-Format habe. Aber wahrscheinlich wird WAV
nicht sehr kompliziert sein, müsste ich mir mal ansehen. Lieber wär's
mir aber im Programm.

> > Sollte allerdings nicht einen zu großen Overhead haben, also kein SDL
> > oder so. Weil dann schreib ich die Funktionen besser selber. ;)
> >
> > Mit Java geht's auch, ich weiß. Ich wollte aber eigentlich lieber
> > C++ nehmen.
> 
> Wenn Du zu viel Overhead wegen system() befürchtest, 

Nein, das eigentlich nicht. Aber mir gefällt die Lösung nicht
besonders. Aber ich habe auch schonmal daran gedacht.


Gruß,
Bernhard

-- 
"Unix is the most user friendly system I know, the point is the it 
is really selective about who is indeed its friend."
        -- Luigi Genoni
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBgjHTiGU2lt2vZFQRAkqUAJ9ZMGBLC9WgBj/L6P7avW7R7oeBGwCff3dq
wQga6ajcTRdb/5QoUH+RLxw=
=v2bk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.