<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>x68kace</author_name>
  <author_url>https://blog.hatena.ne.jp/x68kace/</author_url>
  <blog_title>ちょっと待っての日記</blog_title>
  <blog_url>https://x68kace.hatenadiary.org/</blog_url>
  <categories>
    <anon>Computer</anon>
  </categories>
  <description>ある処理に問題があって、それを直すために、2025年にもなってwavファイルの読み込みコードを書いた。PCM以外のwavファイルを扱うのは確認が面倒だったので、非対応として弾くことにした。エラーチェックはそこそこ入れたけど、多分バグがある気がする。C++で実装したのは、問題のコードがC++で書かれていたから。 std::filesystem::absolute を使うために C++17 のコードになっている。あと、C言語からでも呼びたくなったときに修正しやすくするため、クラスにはしなかった。wavファイル読み込み関数 #include &quot;load_wave.h&quot; #include &lt;cstri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fx68kace.hatenadiary.org%2Fentry%2F2025%2F04%2F05%2F160252&quot; title=&quot;wavファイルの読み込み処理をいまさら書いた - ちょっと待っての日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-05 16:02:52</published>
  <title>wavファイルの読み込み処理をいまさら書いた</title>
  <type>rich</type>
  <url>https://x68kace.hatenadiary.org/entry/2025/04/05/160252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
