AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi Surround-Sound mit Delphi
Thema durchsuchen
Ansicht
Themen-Optionen

Surround-Sound mit Delphi

Ein Thema von Delphi Star · begonnen am 29. Okt 2005 · letzter Beitrag vom 31. Okt 2005
Antwort Antwort
Delphi Star

Registriert seit: 4. Apr 2004
432 Beiträge
 
Delphi 2005 Personal
 
#1

Surround-Sound mit Delphi

  Alt 29. Okt 2005, 23:33
Wie kann man direkt mit Delphi einzelne Boxen einer Surround-Anlange ansteuern
Real programmers code in binary
SwapIt: Punkte
  Mit Zitat antworten Zitat
Daniel G
(Gast)

n/a Beiträge
 
#2

Re: Surround-Sound mit Delphi

  Alt 29. Okt 2005, 23:34
Wohl via Direct Sound, würde ich sagen...
  Mit Zitat antworten Zitat
Delphi Star

Registriert seit: 4. Apr 2004
432 Beiträge
 
Delphi 2005 Personal
 
#3

Re: Surround-Sound mit Delphi

  Alt 29. Okt 2005, 23:38
...und wie geht das
Real programmers code in binary
SwapIt: Punkte
  Mit Zitat antworten Zitat
Daniel G
(Gast)

n/a Beiträge
 
#4

Re: Surround-Sound mit Delphi

  Alt 29. Okt 2005, 23:42
Zitat von Delphi Star:
...und wie geht das
Das ist 'ne gute Frage... Ich hab' leider absolut keinen Ahnung. War halt nur so eine Idee von mir, da Winamp das Imho auch so macht. Vielleicht solltest du einfach mal das beliebte Orakel fragen...

Es gibt glaub ich eine ganz gute Übersetzung der DirectX - Header. Und damit meine ich nicht DelphiX...
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#5

Re: Surround-Sound mit Delphi

  Alt 30. Okt 2005, 10:02
Moin!

WaveOut Interface von Windows (also kein DirectX nötig). Grundlegendes als Beispiel dazu (C++): hier. Dann die Erweiterung auf mehr als Stereo Sound: Kein Problem. Bei der WaveOutOpen() Funktion anstatt der WAVEFORMATEX Struktur einfach die WAVEFORMATEXTENSIBLE übergeben. Da kannst du dann ganz genau angeben, welche Lautsprecher bzw. Kanäle du ansprechen/bedienen willst.

MfG
Muetze1
  Mit Zitat antworten Zitat
Delphi Star

Registriert seit: 4. Apr 2004
432 Beiträge
 
Delphi 2005 Personal
 
#6

Re: Surround-Sound mit Delphi

  Alt 30. Okt 2005, 15:32
Ein Beispiel wäre schön.
Real programmers code in binary
SwapIt: Punkte
  Mit Zitat antworten Zitat
Benutzerbild von SirThornberry
SirThornberry
(Moderator)

Registriert seit: 23. Sep 2003
Ort: Bockwen
12.235 Beiträge
 
Delphi 2006 Professional
 
#7

Re: Surround-Sound mit Delphi

  Alt 30. Okt 2005, 15:40
ich hab das ganze mal probiert und musste feststellen das es bei meiner Soundkarte nicht funktioniert. Über die Windowsinternen Funktionen scheint es nur mit Hilfe von WDM-Treibern zu funktionieren. Sobald man bei meiner Soundkarte WAVE_FORMAT_EXTENSIBLE verwendet kommt der Fehler das es von der Soundkarte nicht unterstützt wird.

@DelphiStar: Hast du dich jemand mit der Soundausgabe per Apifunktionen beschäftigt oder hast du da noch gar keine Ahnung? Wenn dem so ist solltest du dir dazu erstmal ein paar Tutorials anschauen bevor du dann noch mit mehrkanal anfängst.
Jens
Mit Source ist es wie mit Kunst - Hauptsache der Künstler versteht's
  Mit Zitat antworten Zitat
Delphi Star

Registriert seit: 4. Apr 2004
432 Beiträge
 
Delphi 2005 Personal
 
#8

Re: Surround-Sound mit Delphi

  Alt 30. Okt 2005, 16:32
Und wie geht das dann über "Direct Sound", wenn das bei Winamp genutzt wird, wird das wohl auf allen Computern funktionieren
Real programmers code in binary
SwapIt: Punkte
  Mit Zitat antworten Zitat
Benutzerbild von vlees91
vlees91

Registriert seit: 19. Apr 2004
843 Beiträge
 
Turbo Delphi für Win32
 
#9

Re: Surround-Sound mit Delphi

  Alt 30. Okt 2005, 16:41
ot: nein nur windows
vlees91
  Mit Zitat antworten Zitat
Wishmaster

Registriert seit: 14. Sep 2002
Ort: Steinbach, MB, Canada
301 Beiträge
 
Delphi XE2 Architect
 
#10

Re: Surround-Sound mit Delphi

  Alt 31. Okt 2005, 00:41
Hi

Du kannst alles mit der bass.dll machen

Aus der Bass Hilfe!

Zitat:
Most soundcards these days are capable of more than plain stereo output. To take advantage of this, HSTREAM and HMUSIC channels can be assigned to specific speakers. For example, channels can be played on the front or rear speakers to effectively have 2 separate stereo outputs from the one device. A 3rd stereo output is available on 5.1 cards, and a 4th on 7.1 cards.

To use speaker assignment, the output device obviously needs to support more than 2 speakers - the speakers member of the BASS_INFO structure can be used to check that. The device's speaker config (in it's control panel) will need to be set accordingly too. In Windows, it also requires the output device to have WDM drivers installed. For reference... Windows XP/2000 use only WDM drivers. Windows Me/98SE can use either WDM or the older VxD driver model. Windows 98/95 do not use WDM drivers.

Stereo speaker assignment flags
BASS_SPEAKER_FRONT The front speakers.
BASS_SPEAKER_REAR The rear/side speakers.
BASS_SPEAKER_CENLFE The center and LFE (subwoofer) speakers in a 5.1 setup.
BASS_SPEAKER_REAR2 The rear center speakers in a 7.1 setup.


Mono speaker assignment flags
BASS_SPEAKER_FRONTLEFT The left-front speaker.
BASS_SPEAKER_FRONTRIGHT The right-front speaker.
BASS_SPEAKER_REARLEFT The left-rear/side speaker.
BASS_SPEAKER_REARRIGHT The right-rear/side speaker.
BASS_SPEAKER_CENTER The center speaker in a 5.1 speaker setup.
BASS_SPEAKER_LFE The LFE (subwoofer) speaker in a 5.1 setup.
BASS_SPEAKER_REAR2LEFT The left-rear center speaker in a 7.1 setup.
BASS_SPEAKER_REAR2RIGHT The right-rear center speaker in a 7.1 setup.


As well as these defined speaker location flags, there is the BASS_SPEAKER_N(n) macro that can be used to access the extra speakers of soundcards that have more than 8 speakers, where n is the n'th pair of speakers (up to a maximum of 15). For example, BASS_SPEAKER_N(1) is equivalent to BASS_SPEAKER_FRONT. To use a speaker in mono, add the BASS_SPEAKER_LEFT or BASS_SPEAKER_RIGHT flags.

The stereo speaker assignment flags can also be used with mono channels, so that, for example, a mono channel can be played on both the front speakers. But mono speaker assignment flags can not be used with stereo channels, so, for example, it's not possible to play a stereo channel on just the center speaker.



Zitat:
Main Features

* Multi-channel streaming
- support for more than plain stereo, including multi-channel OGG/WAV/AIFF file

Und wen du bass v2,2 nimmst der kann auch ac3 files abspielen. (bass_ac3.dll)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:39 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz