architecture and sound Flashcards
how do we mechanically replicate sound with large speakers
an electronic signal which is usually analogue causes surfaces inside the speaker to move
the signal encodes how the surfaces should move
what are pure tones
sound waves of pressure
frequency
waves per second
sample rate
how many times per second do we want to represent the values in our sound
nyquists frequency/theoreom
the sample rate should be twice the frequency
storage need for a sample
bit depth x sample rate
bit depth
gives the window size of how much of a range is being enclosed in your sample
sound cards
have amplifiers; input and output; multiple sound channels and polyphony; midi support which created better sound as pc speakers could only beep for warnings
how does streaming audio work
a buffer is filled and you let the audio subsystem “drain” then its refilled before its empty
with large samples without an end point you can’t wait until they’re generated to start playing
if its fast enough it never completely drains so there’s no skips
what is a ring buffer and what data structures could be used to implement it
ordered sequential data structure with no end
could be implemented with an array or linked list