summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sound_asset.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 833d89dc..9ec3b2f9 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -153,7 +153,10 @@ SoundAsset::construct (sigc::slot<string, Channel> get_path)
}
if (frame_buffer_channel[j].Size() != frame_buffer_channel[j].Capacity()) {
- throw MiscError ("short audio frame");
+ stringstream s;
+ s << "short audio frame; " << _channels << " channels, "
+ << frame_buffer_channel[j].Size() << " vs " << frame_buffer_channel[j].Capacity();
+ throw MiscError (s.str ());
}
}