aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenufile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermenufile.cpp')
-rw-r--r--linden/indra/newview/llviewermenufile.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewermenufile.cpp b/linden/indra/newview/llviewermenufile.cpp
index 5068736..231da59 100644
--- a/linden/indra/newview/llviewermenufile.cpp
+++ b/linden/indra/newview/llviewermenufile.cpp
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -596,15 +596,9 @@ void upload_new_resource(const LLString& src_filename, std::string name,
596 asset_type = LLAssetType::AT_SOUND; // tag it as audio 596 asset_type = LLAssetType::AT_SOUND; // tag it as audio
597 S32 encode_result = 0; 597 S32 encode_result = 0;
598 598
599 S32 bitrate = 128; 599 llinfos << "Attempting to encode wav as an ogg file" << llendl;
600 600
601 if (compression_info) 601 encode_result = encode_vorbis_file(src_filename.c_str(), filename.c_str());
602 {
603 bitrate = compression_info;
604 }
605 llinfos << "Attempting to encode wav as an ogg file at " << bitrate << "kbps" << llendl;
606
607 encode_result = encode_vorbis_file_at(src_filename.c_str(), filename.c_str(), bitrate*1000);
608 602
609 if (LLVORBISENC_NOERR != encode_result) 603 if (LLVORBISENC_NOERR != encode_result)
610 { 604 {