1 / 19

Audiodatenformate

Audiodatenformate. Ein kleiner Überblick Über die traditionellen Audiodatenformate. Gliederung. Überblick/Entwicklungsskizze Ausgewählte Formate im Detail Unkomprimierte Das SND-Format Das WAV(PCM) bzw. AU Format Das AIFF Format Komprinierte AIFF-C MOD-Format (MIDI-Format) Vergleich

ghita
Download Presentation

Audiodatenformate

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Audiodatenformate Ein kleiner Überblick Über die traditionellen Audiodatenformate

  2. Gliederung • Überblick/Entwicklungsskizze • Ausgewählte Formate im Detail • Unkomprimierte • Das SND-Format • Das WAV(PCM) bzw. AU Format • Das AIFF Format • Komprinierte • AIFF-C • MOD-Format • (MIDI-Format) • Vergleich • ADAT

  3. Überblick/Entwicklung EAIFF 85 RIFF WAV ADAT SND AESEBU VOC AU MOD AIFF AIFF-C MOD IFF SPDIF

  4. SND Wird bei NeXT und Sun verwendet Besteht aus Kopf (SNDSoundStruct) und Daten Bei NeXT z.B. in eine Standartbibliothek (Sound Kit) einge- bunden, wodurch Bearbeitung des Klanges ohne Kenntnis vom inneren Aufbau einer SND Datei möglich ist Aufbau des SNDSoundStruct Aufbau in C Syntax typedef struct { int magic;/*magic number SND_Magic*/ int dataLocation;/*offset or pointer to the data*/ int dataSize;/*number of bytes of data*/ intdataFormat;/*the data format code*/ int samplingRate; /*the sampling rate*/ int channelCount; /*the number of channels*/ char info[4]; /*optional text information*/ }SNDSoundStruct; Das SND-Format

  5. WAV(PCM) AIFF Die Entwicklung EA IFF 85-Format Microsoft Apple /Mac RIFF-Format AIFF Windows WAV-Format

  6. Der Aufbau der Wav-Formates

  7. Der FMT-Chunk

  8. Form Chunk Typedef struct{ ID ckID; /*=Form*/ long ckSize; /*=Länge in byte*/ ID formType; /*= Wave */ char chunks[ ]; /*Korrektur-byte falls ckSize ungerade ist*/ }WaveChunk; Format Chunk Typedef struct { ID ckID; /*= Format */ long ckSize; unsigned short wFormatTag; (= WAVE_FORMAT_PCM) unsigned short nChannels; unsigned long nSamplesPerSec; unsigned long nAvgBytesPerSec; unsigned short nBlockAlign; unsigned short nBitsPerSample; }FormatChunk Der Code des Wave Chunks in C Der Data Chunk enthält nur die Audiodaten

  9. Der Aufbau des AIFF-Formates Darüber hinaus gibt es noch eine Reihe weiterer Chunks!

  10. Der Common Chunk typedef struct { ID ckID; /* =COMM */ long ckSize; /* =18*/ short numChannels; unsigned long numSampleFrames; short sampleSize; extended sampleRate; } CommonChunk Der Sound Data Chunk typedef struct { ID ckID; /* = SSND*/ long ckSize; unsigned long offset; unsigned long blockSize; unsigned char soundData [ ]; } SoundDataChunk Der Code des AIFF Chunks in C Die Syntax des Form Chunks gleicht der des Wave Chunks

  11. Komprimierung von Musikdaten • Digitalisierung von Musik • Große Datenmengen  möglicher Ausweg Komprimierung • Probleme bei der Komprimierung • Komplexität des Verfahrens • Datenverlust • Qualitätsverlust

  12. Von AIFF zu AIFF-C • AIFF-C ist eine Erweiterung von AIFF zur Verwendung von komprimierten Klangdaten. • Der grundsätzliche Dateiaufbau bleibt unverändert. • Der Form Chunk hat den gleichen Aufbau wie bei AIFF. Der einzige Unterschied besteht im Inhalt des Formtyps, der jetzt `AIFC‘ heißt. Außerdem muß er genau einen Format Version Chunk enthalten. • Der Common Chunk wurde im Vergleich zu AIFF um zwei Angaben erweitert: ID compressionType; Pstring compressionName; • Im Sound Data Chunk folgen die komprimierten Daten der einzelnen Kanäle immer hintereinander, gefolgt von den Daten des nächsten Zeitintervalls.

  13. Das MOD Audioformat • völlig andere Herangehensweise an das Komprimieren der Daten • kein pures Sampling • mehrere kurze Samplings (Instrumente) und eine Partitur mit Noten • Hoher Produktionsaufwand • Bearbeitungsprobleme • Kein Rechenaufwand bei der Komprimierung

  14. Aufbau des Mod Formates

  15. Das Midi Format • Noch „kleiner“ als das MOD-Format • Nur noch abspeichern von Nummern • Informationen zu den Nummern in Software oder Hardware • Da genaue Instrumentendefinitionen häufig nicht vorhanden sind,ist eine getreue Wiedergabe fast nicht möglich

  16. Vergleich der Datenmengen der einzelnen Formate

  17. ADAT (Datenübermittlung) Problem: Übertragung digitaler Audiodaten ohne Informationsverlust. 1.Entfernung 2.Taktfrequenz 3. Kanalmenge Lösung:ADAT

  18. Aufbau Teil 1 1 Kanal 4 Daten Informationsbits Einsbit 10 Nullbits User Bits Kanal 1 Kanal 2 ..... Kanal 8

  19. Aufbau Teil 2 Beispiel (vier Kanäle,kein Userbit) 0000 0000 0000 0000  Information von 4 Kanälen 0000100001000010000100000000001 im ADAT Format 0000111110000011111000000000001 kodiert

More Related