<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>couple questions...</title>
		<link>http://www.allegro.cc/forums/view/296569</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 26 Aug 2003 01:19:35 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>how can I use scancode_to_ascii and check if the user is holding shift and if so enter a capitol letter (for high score name entry). I have the function done, but no caps.</p><p>when I build the static version of allegroMp3 and link it using almp3.lib and try to compile using MSVC6 I get: error LNK2001: unresolved external symbol __imp__play_audio_stream<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__stop_audio_stream<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__free_audio_stream_buffer<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__get_audio_stream_buffer</p><p>and also, jpgAlleg 2.1 still wont compile for me (need MSVC6 version).  I tried over and over with MingW32, but to no avail.  I&#39;ve been trying using MSVC&#39;s NMAKE program, but I only assumed that it would work.  If anyone can help me out and tell me exactly how to compile the lib OR send me the files I need via email, that would be great: typosoft@hotmail.com
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MickyD)</author>
		<pubDate>Mon, 25 Aug 2003 21:40:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
If (key[KEY_SHIFT]) isn&#39;t good enough?<br />Remember to check for caps state, though.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Mon, 25 Aug 2003 21:54:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>For the first question, you could do something like this.</p><div class="source-code snippet"><div class="inner"><pre><span class="k1">char</span> k <span class="k3">=</span> <a href="http://www.allegro.cc/manual/scancode_to_ascii" target="_blank"><span class="a">scancode_to_ascii</span></a><span class="k2">(</span>scancode<span class="k2">)</span><span class="k2">;</span>
<span class="k1">if</span><span class="k2">(</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_RSHIFT<span class="k2">]</span> <span class="k3">|</span><span class="k3">|</span> <a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_LSHIFT<span class="k2">)</span>
  k <span class="k3">=</span> <a href="http://www.delorie.com/djgpp/doc/libc/libc_827.html" target="_blank">toupper</a><span class="k2">(</span>k<span class="k2">)</span><span class="k2">;</span>

<span class="c">// then deal with k.</span>
</pre></div></div><p>

[edit: beaten by the cookie, and toupper is in ctype.h btw]
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Derezo)</author>
		<pubDate>Mon, 25 Aug 2003 21:55:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay, got the highscores thing working, and for the most part the jpglib.  I just included the files in my program.  But because I included the jpeg.c and jpgalleg.h files all my calls to sin and cos are very jumpy now instead of smooth.  Maybe I should use fixsin &amp; fixcos?  If so, how do you use them (because when I tried I didn&#39;t get the same results as sin and cos using a float for the value).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MickyD)</author>
		<pubDate>Mon, 25 Aug 2003 22:24:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>But because I included the jpeg.c and jpgalleg.h files</p></div></div><p>

Aigh! Never include .c files!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Mon, 25 Aug 2003 22:27:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>then how should I do it?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MickyD)</author>
		<pubDate>Mon, 25 Aug 2003 22:31:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
Compile them and link with them, perhaps? <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Mon, 25 Aug 2003 22:42:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>screw the jpglib.  I have it working now and if I compress an image to the point where it makes a difference I lost my transparency for my game (because it makes the image lossy).  But when I use the lowest compression for a jpg (which decreases the file size by half) and then run the allegro grabber, it saves the datafile to 130% the original file size!  So I&#39;ll just use the bitmaps instead.</p><p>I still am having problems with allegroMp3.  Anybody know what I need to do?  I ran and compiled the static version and copied the lib to my vc98\lib\ directory.  Then I included the .h file and added almp3.lib to my link tab.  It doesn&#39;t spit out any errors when I don&#39;t use any functions from the lib, but when I add in the functions from the example program I get: almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__play_audio_stream<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__stop_audio_stream<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__free_audio_stream_buffer<br />almp3.lib(almp3.obj) : error LNK2001: unresolved external symbol __imp__get_audio_stream_buffer
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MickyD)</author>
		<pubDate>Mon, 25 Aug 2003 23:28:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>sounds like the mp3 library is referencing another library that you don&#39;t have.  Just my 2 pennies.</p><p>Mae
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mae Mutts)</author>
		<pubDate>Mon, 25 Aug 2003 23:46:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Why put jpg&#39;s into a datafile? Wanna keep others from using them?<br />Anyway, jpg is only good at &quot;smooth&quot; images like photographs or blurry backgrounds or the like. Games usually need sharp edges, and a single sprite seldom uses many colors. You might want to use gifs instead? (Plus they support mask colors)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tobias Dammers)</author>
		<pubDate>Tue, 26 Aug 2003 00:45:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Use PNGs. Good non-lossy compression and a higher bit-depth support.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fladimir da Gorf)</author>
		<pubDate>Tue, 26 Aug 2003 00:50:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>PNG&#39;s are the way to go. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /><br />Personally, I just use BMP&#39;s until the size exceeds a couple megs.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Why put jpg&#39;s into a datafile? Wanna keep others from using them?</p></div></div><p>
You can also load the jpgs from a single datafile instead of having hundreds of jpg&#39;s... and it also offers more compression (although I don&#39;t know if jpgs would compress well with datafiles). Datafiles are excellent organizers. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Derezo)</author>
		<pubDate>Tue, 26 Aug 2003 01:03:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m just not going to worry about anything other than bitmaps.  I&#39;ve been working on this game for about a month and it is pretty much done.  The only thing I don&#39;t like about it is that it&#39;s a 6 meg download.</p><p>Anyways, here&#39;s a question:  how can I change an executable&#39;s icon using an icon stored in the exe using MSVC?</p><p>and I think the mp3 library is trying to access the mp3123 lib or something?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MickyD)</author>
		<pubDate>Tue, 26 Aug 2003 01:19:35 +0000</pubDate>
	</item>
</rss>
