Capturing Sounds with C

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 112

  • @Johnny-tw5pr
    @Johnny-tw5pr ปีที่แล้ว +152

    The goal for this entire project was for him to flex his beatbox skills

    • @Anubis10110
      @Anubis10110 ปีที่แล้ว +3

      Lol 😂

    • @user-qx2ec7oe9p
      @user-qx2ec7oe9p ปีที่แล้ว +6

      He’s pretty good at it in all honesty.

  • @Riacho_lol
    @Riacho_lol ปีที่แล้ว +53

    I love this man

  • @batatanna
    @batatanna ปีที่แล้ว +21

    So you don't just C, you also hear

  • @cheebadigga4092
    @cheebadigga4092 ปีที่แล้ว +12

    The low noise can also be the microphone itself. It's called "mic humming" or "mic buzzing", some mics handle it better than others. Also it could pick up fan noise from multiple sources and the noise you see is the merger of all these factors. Nothing much you can do besides moving the mic into a sound-teated room, or of course post-process the recording with EQ. But even with EQ you have to know the conditions of the room, so it's nothing to worry about and has nothing to do with your code in particular.

    • @poopybutt-jb5fv
      @poopybutt-jb5fv ปีที่แล้ว +2

      You could also just use a noise gate

    • @poopybutt-jb5fv
      @poopybutt-jb5fv ปีที่แล้ว

      A great example is the stock ableton 11 gate

    • @cheebadigga4092
      @cheebadigga4092 ปีที่แล้ว +1

      True if you only want to record voice ever. For everything else I wouldn't recommend it.
      Regardless of what you would use to remove the noise - it's always better to handle that before the sound is captured by the microphone for the specific sounds you want to record. So his code should not mess around with that in any way.

    • @cheebadigga4092
      @cheebadigga4092 ปีที่แล้ว +3

      @@poopybutt-jb5fv yeah there are plenty good ones. However, musializer shouldn't handle that. There are only two options:
      Hardware noise gate (or any type of necessary pre production) - sound into microphone - into musializer - into audio file - any type of necessary post production
      OR
      Sound into microphone - into musializer - into audio file - software noise gate (or any type of necessary post production)

  • @fjkldhakljf
    @fjkldhakljf ปีที่แล้ว +9

    Tsoding DAW arc started !!

  • @vasilecaspirovschi3925
    @vasilecaspirovschi3925 ปีที่แล้ว +2

    oh man, i was just thinking of capturing the sound from sound card using ALSA today morning, and look at this even a new video about that awesome

  • @SteveRowe
    @SteveRowe 10 หลายเดือนก่อน

    The way you feel about working with the code of a competent developer is the way I feel when I watch you code.

  • @cheebadigga4092
    @cheebadigga4092 ปีที่แล้ว +9

    AFAIK the POSIX standard only defines "nonzero" exit codes as errors, so you can do positive or negative values, doesn't really matter. Some people/projects use negative ones, but most use positive ones. The consesus around nix-OSes is positive, I believe. But it's not forced in any way.

    • @Jalmari1
      @Jalmari1 ปีที่แล้ว

      I think posix defines almost always error return code to be -1 and reason is set to errno 🤔

    • @cheebadigga4092
      @cheebadigga4092 ปีที่แล้ว +1

      @@Jalmari1 errno values are positive.

    • @cheebadigga4092
      @cheebadigga4092 ปีที่แล้ว +1

      @@Jalmari1 also bash is POSIX-compliant and it has purely positive exit codes.

    • @Jalmari1
      @Jalmari1 ปีที่แล้ว

      @@cheebadigga4092 yes errno values are positives but functions returns -1.

    • @Jalmari1
      @Jalmari1 ปีที่แล้ว

      @@cheebadigga4092 Program return codes can be only positive but I was talking about posix c functions they return -1.

  • @JonnyDeRico
    @JonnyDeRico ปีที่แล้ว +5

    nowadays, i would provide / design the struct parameters by value, because calling conventions says: fancy compiler try to pack in an register, if it is the size of your mama and won't fit - just push it to the stack and use a pointer to adress it :)... nice video as always...

  • @MrDgf97
    @MrDgf97 ปีที่แล้ว +4

    watching bro soyface over the duplex bitwise OR is peak content

  • @SourabhBhat
    @SourabhBhat ปีที่แล้ว +2

    You are highly talented.

  • @jamesnewman9547
    @jamesnewman9547 ปีที่แล้ว +1

    37:10 Exactly - I feel your rant so hard here. I think the answer is that companies want something that allows them to get rid of expensive people that have to know things. Not only can you hire cheaper less skilled people at that point, you devalue the skilled ones to lower than those less skilled people.
    43:09 I feel called out! I'm not the lib writer, but when I was programming in C, I figured it wasn't too difficult to target C89 and so did so just because.
    50:50 This code is so nice! I'd imagine someone writing an audio library is going to be very used to bitmasks and such. This person knows hardware.

  • @ameerazizanzulkarnain8224
    @ameerazizanzulkarnain8224 ปีที่แล้ว +4

    37:00 love this rant lol

  • @drdca8263
    @drdca8263 ปีที่แล้ว +2

    49:05 I think Jai has a feature for doing this with its enums. Or at least had at some point, not sure if it was just an experiment and was maybe gotten rid of, or if it is still in there.
    1:14:46 this is sorta kinda like “namespaces”, right?
    1:50:31 wow!

  • @sena895
    @sena895 ปีที่แล้ว +5

    Beautiful thumbnail!

  • @daler-qg7sw
    @daler-qg7sw ปีที่แล้ว +2

    58:45 Best beatbox 😊

    • @brdevll
      @brdevll ปีที่แล้ว +1

      he is very good at beatboxing

  • @tomaspecl1082
    @tomaspecl1082 ปีที่แล้ว +1

    Miniaudio... And its 3.8 MB... I find that hilarious.

  • @taba1950
    @taba1950 ปีที่แล้ว +1

    The noise in the background might be the electric power line frequency

  • @JonnyDeRico
    @JonnyDeRico ปีที่แล้ว

    ok I am curios and will do some sine wave sweeps, maybe there is some room to make the vizualizer more useful - because it looks really nice.

  • @aboutcomp4825
    @aboutcomp4825 ปีที่แล้ว

    Watch you video is very peaceful for me😂 Thanks!.

  • @danielgerthe4180
    @danielgerthe4180 ปีที่แล้ว

    1:36:10 you add device to plugin but device internal structure contains function pointer within current plugin. Unless user_callback happens to get loaded at the same virtual address I would expect to see some odd results during hotreload. I may be wrong/misreading something just a thought. Been enjoying this series a lot thanks for the content

  • @SteveRowe
    @SteveRowe 10 หลายเดือนก่อน

    I think that depending on which audio library raylib is using will get you in trouble in the future.

  • @wido1085
    @wido1085 ปีที่แล้ว +5

    This would have been better with a beatbox intro. Just saying.

  • @MatthisDayer
    @MatthisDayer ปีที่แล้ว +4

    Is this a reupload from yesterday's video I didn't get to watch?

  • @siniarskimar
    @siniarskimar ปีที่แล้ว +1

    11:40 unless my machine is also 10 years old

  • @keremardicli4013
    @keremardicli4013 ปีที่แล้ว

    This is wonderful

  • @supremedeity9003
    @supremedeity9003 ปีที่แล้ว +1

    9:55 Rust is really loved on this channel huh 😅

  • @dastan331
    @dastan331 ปีที่แล้ว

    I like the way you think 👍

  • @cyanide0081
    @cyanide0081 ปีที่แล้ว +4

    damn i tested it on win and it looks so fucking cooooooooooooooool 😎
    (btw is the lack of support for flac files something to do with raylib? maybe i could try taking a look at that)

    • @TsodingDaily
      @TsodingDaily  ปีที่แล้ว +1

      Yeah, the support for them is disabled in raylib for some reason. Maybe it does not work well enough I dunno.

    • @cyanide0081
      @cyanide0081 ปีที่แล้ว +1

      @@TsodingDaily ah i see, that's a shame :/

    • @supremedeity9003
      @supremedeity9003 ปีที่แล้ว

      ​@@cyanide0081i mean im not sure if ffmpeg is on windows(it most likely is), then you can just do a convert very quick.

  • @noctavel
    @noctavel ปีที่แล้ว

    not gonna lie.. the result is really fucking cool!

  • @sukina5066
    @sukina5066 11 หลายเดือนก่อน

    35:49 arch comm is the best: RTFM, lol;
    1:04:59 Imagine getting disappointed for not getting slapped in the face;
    1:49:34 Satisfying AF;
    I'm writing a procedurally generated game and watching tsoding, so don't mind me for this weird commentary.

  • @cofeek-codes7607
    @cofeek-codes7607 ปีที่แล้ว

    how to acheave same behavior of minibuffer (one-line fuzzy finding)?

  • @joao.reboucas
    @joao.reboucas ปีที่แล้ว +3

    recording ma_voice

  • @todoesverso
    @todoesverso ปีที่แล้ว

    the noise might be electrical 50/60 Hz

  • @JonnyDeRico
    @JonnyDeRico ปีที่แล้ว +5

    you have a bug in your fft. th-cam.com/video/CCvpVNVS-9M/w-d-xo.html -> there are no low frequencies at all, but spektrum shows high amplitude for lower band? could be from low quality 8Bit sounds. Not sure :) Did you forgot to remove first tap (dc level) ?

    • @TsodingDaily
      @TsodingDaily  ปีที่แล้ว +5

      I see this anomaly only on that specific song. The other songs look fine. Especially non-chiptune ones.

  • @josecarloscirqueirajunior2914
    @josecarloscirqueirajunior2914 ปีที่แล้ว

    great library

  • @alejandroulisessanchezgame6924
    @alejandroulisessanchezgame6924 ปีที่แล้ว +4

    Hello, there was another video about this same theme 3 day ago?

  • @sladoid
    @sladoid ปีที่แล้ว

    The best

  • @dastan331
    @dastan331 ปีที่แล้ว +1

    12:14 Rust language bullying
    😂😂😂

  • @TheRealBigYang
    @TheRealBigYang ปีที่แล้ว +2

    Why remove the intro, bro? It literally made me watch till the end the first time!

  • @Neuer_Alias_erstellen
    @Neuer_Alias_erstellen 5 หลายเดือนก่อน

    cool

  • @readdaily5680
    @readdaily5680 4 หลายเดือนก่อน

    can you place part 1 , part 2 and so on in the videos title

  • @JarerFolders
    @JarerFolders ปีที่แล้ว +3

    это правда круто

  • @vitorino773
    @vitorino773 ปีที่แล้ว

    Great video.
    At what age you started coding?
    thanks

  • @sharokhkeshawarz2122
    @sharokhkeshawarz2122 ปีที่แล้ว

    Boi Boi your so good at beatbox XD

  • @johnhammer8668
    @johnhammer8668 ปีที่แล้ว

    49:05 What is the intention of oring instead of hardcoding as 3? Did not get this

  • @Momoyon
    @Momoyon ปีที่แล้ว +4

    Why did you reupload this video? I had it downloaded and now i have to download again. The cool intro is also gone

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff ปีที่แล้ว

      maybe original got deleted by youtube bot (original link was not saved in firefox history)

    • @Momoyon
      @Momoyon ปีที่แล้ว

      @@RandomGeometryDashStuff Huh what you talking abt

    • @vk-hm6te
      @vk-hm6te ปีที่แล้ว

      Just keep the old one it’s the same video without the intro

    • @Momoyon
      @Momoyon ปีที่แล้ว +1

      @@vk-hm6te I mean I have it downloaded on TH-cam and it got deleted automatically

  • @heyyouhere
    @heyyouhere ปีที่แล้ว

    Let's go!

  • @StevenMartinGuitar
    @StevenMartinGuitar ปีที่แล้ว +1

    "It's so good working with code written by a competent person"... Here's where Tsoding does a grep and realises that this was one of the 300,000,000 repos he's written 😂

  • @_visionthings
    @_visionthings ปีที่แล้ว

    🔥👏

  • @SeishukuS12
    @SeishukuS12 ปีที่แล้ว

    😀👍

  • @drdca8263
    @drdca8263 ปีที่แล้ว +1

    I don’t think I understand the relationship between the “they are talking about aligning AI” and “they aren’t looking at the code they are using”.
    I realize you stopped yourself from continuing about that because you didn’t want to go on a rant, so, if you think it best for you to not elaborate on that on account of wanting to not go on a rant, then please disregard this question,
    but, if you don’t have a reason you’d like to avoid commenting further on the relation between those two things, I would like to know what connection you were drawing between those two topics.
    Oh! Was the connection, “people using software as a black box” and “ML models are basically non-intelligible black-boxes” and “how can you hope to align AI given that the ML models are black boxes?”?
    I do believe a fair portion of alignment research is focused on “interpretability”, which is kind of like opening up the black box of the ML model and trying to determine “what makes it tick” / how its outputs are determined.
    (And also stuff like, “what is the dynamics of the training process like? What guarantees can we get about how similar different training runs would be, and how can we ensure that training results in the trained model having properties X that we want and not properties Y that we don’t want”)

  • @p2k7777
    @p2k7777 ปีที่แล้ว

    _t is short for _tsoding

  • @sinamobasheri
    @sinamobasheri ปีที่แล้ว

    35:09 documentation purposes...

  • @monsieuralexandergulbu3678
    @monsieuralexandergulbu3678 ปีที่แล้ว +1

    Y reupload

  • @Dimkar3000
    @Dimkar3000 ปีที่แล้ว

    In my university we solved problems, we never wrote comments. I had to learn it later.

  • @iDoComputers
    @iDoComputers ปีที่แล้ว

    Hello everyone!🎉

  • @vigneshsp4619
    @vigneshsp4619 ปีที่แล้ว +1

    I's been made public

  • @arieloduor
    @arieloduor ปีที่แล้ว

    please do audio programming from scratch😢

    • @lucasjames8281
      @lucasjames8281 4 หลายเดือนก่อน

      This library is from scratch and it’s 100 000 lines or something. I love handmade and from scratch stuff, but sometimes it’s not worth it. If none of these libraries do what you want how you want it, then by all means rewrite, but opportunity cost is a real thing✌️

  • @hellopapa9357
    @hellopapa9357 ปีที่แล้ว

    guys, what terminal emulator does he use?

  • @pogchamper228
    @pogchamper228 11 หลายเดือนก่อน

    пажилой Си

  • @s.m.2607
    @s.m.2607 7 หลายเดือนก่อน

    Can i make this in codeblocks?

  • @adasko687
    @adasko687 ปีที่แล้ว

    Bro I learn so much from ur videos. Wanna ask, if you are really good programmer, why you live in such ugly room, why not to spend some money and live in better place?

    • @StevenMartinGuitar
      @StevenMartinGuitar ปีที่แล้ว

      Maybe it's one room in big mansion

    • @adasko687
      @adasko687 ปีที่แล้ว

      @@StevenMartinGuitar Im 100% sure hes not living in a mansion bro xd

    • @lucasjames8281
      @lucasjames8281 4 หลายเดือนก่อน

      @@adasko687being a low level from scratch programmers is not actually a good financial move. This guys better than most web developers, but a mediocre front end developer at some large rich company could make $100 000 usd a year.
      Where do you use these advanced low level programming skills ? Game dev ? Notoriously poorly payed and saturated market. Audio programming ? Also underpayed, 99% of audio software is torrented, there’s very little money in the industry for workers.
      Your best bet is to use these skills to make some vital piece of software people need. For example, disk voyager is a windows file manager that’s infinitely better than the default one, I’m sure that solo developer can make good money selling it for 20-40$ a pop.
      The fact that good efficient programming skills are in low demand is really sad.
      If he was willing to adopt some instructed and spend time getting good at some corpy framework, he could definitely make a bunch of money, but maybe he doesn’t want to sacrifice his happiness ?

  • @petromudrievskyj
    @petromudrievskyj ปีที่แล้ว

    Rants about copy-pasting - proceeds to copy-paste

  • @alejandroulisessanchezgame6924
    @alejandroulisessanchezgame6924 ปีที่แล้ว

    I mean topic 😅 sorry my english is not good.

  • @herkulessi
    @herkulessi ปีที่แล้ว +1

    404 Views (Not found)

  • @XELER53
    @XELER53 ปีที่แล้ว

    Stop it

  • @user-ny7el1sp6h
    @user-ny7el1sp6h ปีที่แล้ว

    Is it possible to remove frequency specified audio content from a file, not eq/filtering but literally remove the content from it?

  • @russjr08
    @russjr08 ปีที่แล้ว +2

    th-cam.com/video/CCvpVNVS-9M/w-d-xo.html "Its big, but its worth it" - I'm disappointed no one in the Twitch chat pulled a "That's what she said" smh
    miniaudio and musializer is a tsodinPog though